TITLE: New website DATE: 2021-10-20 AUTHOR: John L. Godlee ==================================================================== I have finally redesigned my website. Previously I was running the website using Jekyll, and uploading to Github. I was using a slightly modified version of the minima theme, but it was still just a list of blog posts, very bare bones. As I'm starting the next chapter of my career in a couple of weeks, as a post-doc researcher at the University of Edinburgh, I thought it was time for a refresh of my website. [Jekyll]: https://jekyllrb.com/ [minima theme]: https://github.com/jekyll/minima I've decided to build the website using Hugo, which is faster to compile than Jekyll and doesn't appear to suffer from the same crazy Ruby dependency issues that Jekyll suffers from on my machine. So far, I've found it fairly simple to migrate the website across to Hugo, and I've found that Hugo offers a great deal more control and possibilities for automation than Jekyll. [Hugo]: https://gohugo.io/ The website now has a personal blurb at the top of the homepage, along with some links to other pages and profiles around the web, including Gopher and Gemini, and a list of the ten most recent blog posts I've written. My CV is as before, but I've added a new section called "Works" which lists articles I've authored or contributed to, as well as some presentations and R packages I've written. My recipes are now held in the same Git repo as the website, and I figured out a neat way to automatically index the recipes based on their category (dessert, drinks, etc.) using Hugo's list pages. I'll explain more comprehensively how this works, because I think it might be useful for other people. The directory structure for my [recipes]({{< ref "/recipes" >}}) is as follows: content └─ recipes ├─ _index.md ├─ bread │ ├─ _index.md │ ├─ beer_rolls.md │ ├─ ciabatta.md │ └─ potato_bread.md ├─ dessert │ ├─ _index.md │ ├─ chocolate_brownies.md │ ├─ elderberry_pie.md │ └─ victoria_sponge_cake.md └─ mains ├─ _index.md ├─ bean_chilli.md ├─ braised_leeks.md └─ yorkshire_pudding.md I have a layouts/recipes/list.html that looks like this: {{ if (eq .Title "Recipes") }}