|
| 1 | +--- |
| 2 | +tags: |
| 3 | + - articles |
| 4 | + - software |
| 5 | +title: > |
| 6 | + New website: 2025 edition |
| 7 | +date: 2025-12-14 |
| 8 | +--- |
| 9 | +<p> |
| 10 | + This website is now built using <a href="https://www.11ty.dev/">Eleventy</a> instead of the Perl script I wrote a couple years ago. |
| 11 | + Everything should look the same as before, except for some minor visual tweaks. |
| 12 | +</p> |
| 13 | +<p> |
| 14 | + Eleventy is a static site generator like <a href="https://gohugo.io/">Hugo</a>, which I've used before. |
| 15 | + However Eleventy uses Javascript instead of Go. |
| 16 | + While it uses Javascript, it outputs ordinary HTML files instead of single-page apps like Angular or Vue. |
| 17 | +</p> |
| 18 | +<p> |
| 19 | + Last year I read <a href="https://www.learning-perl.com/"><em>Learning Perl</em></a>. |
| 20 | + Then I <a href="../new-website-2024-edition/">made this website</a> to practice with Perl. |
| 21 | + However, I've barely used Perl since then—lately I've been re-learning Python. |
| 22 | + The thought of using Perl to implement something like pagination didn't interest me. |
| 23 | + That's the biggest reason why I decided to use Eleventy, but it has other advantages: |
| 24 | +</p> |
| 25 | +<ul> |
| 26 | + <li>I'm more familiar with Javascript than Go or Perl</li> |
| 27 | + <li>The Github pipeline to build and deploy the website takes about 30 seconds, compared to around 5 minutes with Perl</li> |
| 28 | + <li>I can run a live web server, which my Perl script couldn't do</li> |
| 29 | +</ul> |
| 30 | +<p> |
| 31 | + Through the process of implementing my website with Eleventy, I've gotten to use a number of its features: |
| 32 | +</p> |
| 33 | +<ul> |
| 34 | + <li>Collections (of course)</li> |
| 35 | + <li>Pagination</li> |
| 36 | + <li>Layouts</li> |
| 37 | + <li>Building pages from data</li> |
| 38 | + <li>Plugins (RSS)</li> |
| 39 | + <li>Computed data</li> |
| 40 | + <li>Nunjucks filters</li> |
| 41 | + <li>Shortcodes</li> |
| 42 | + <li>Passthrough file copy</li> |
| 43 | + <li>Global data</li> |
| 44 | +</ul> |
| 45 | +<p> |
| 46 | + I'm curious about other features that I haven't used yet. |
| 47 | + However, I've entirely replaced my old build system, so I don't think I need any other features. |
| 48 | +</p> |
| 49 | +<p> |
| 50 | + It was a short, fun project. |
| 51 | + Was it necessary considering I hadn't updated my website in a year and a half? |
| 52 | + Time will tell! |
| 53 | +</p> |
0 commit comments