I recently rebuilt my website. I had previously used Wordpress, and while that was perfect to get started, I soon got annoyed by its relative inflexibility. While Wordpress has a huge community with tons of free templates for nicely designed websites, the templates themselves are often very opinionated in a sense that they encourage certain archetypes, like Blogging sites, or magazine-style sites. Customization is possible, but it comes in the form of plugins (again, thousands are available for free), and the more customization you want, the more plugins you end up using. This at some point makes the whole system a bit bloated, and still not quite right in the end.
The issue with an academic homepage such as mine is that it doesn’t quite fit a classical Blogging website, but that I also want support for listing publications, talks, and for presenting my research group. I also want a News sidebar that lists not only recent Blog posts but also recent publications and generally announcements. While all this is somehow possible also with Wordpress, it wasn’t fun anymore to play with all these different plugins, and in the end have massive functionality available which overlaps only to a very small extent with what I actually wanted.
There is another thing that annoyed me about Wordpress: It is actually quite slow. The reason is that it creates pages dynamically from a database-backend, in which blog posts, pages and simply all content is stored. I wanted something simpler and faster, and having a dynamic fully-fledged content-management-system as a backend for my personal homepage was simply not something I actually needed.
All static site generators work a bit similar: You have directories with content, such as Blog Posts, pages, images, and style sheets, and you have a program that builds your final html pages to be seen through the webbrowser from that content. In doing so, you can use your content in very customized ways to fill your website’s components. For example, as you can see on the right (or below if you’re viewing this on your phone), I have a list of news items, which include “New Blog Post” and “New publication” items. These are created automatically from my list of publications and blog posts. So as soon as I write a new post or add a publication, those get not only added to the the respective publication list and list of blog posts, but also appear in the News sidebar. This removed some reduncancy for me, which I had before in my Wordpress site. Within my sidebar and publication lists, I also added the possibility to add images, which I couldn’t do before (I’m sure there is a plugin which will get it 80% right).
Moving away from pre-built templates in Wordpress also meant that I had to design my website from scratch using custom style sheets written in CSS. Now, I’m not particularly proud of this design, but it’s functional and minimal, and uses only a fraction of CSS commands than what Wordpress or other professionally designed webpages need. So that’s good. I am a little proud that I worked out how to make the design of my page responsive. This is a term used in Webdesign which refers to the concept of having your design respond to what device you’re viewing it through. So if you make your browser window very narrow, you will notice that the design changes slightly, in particular the sidebar will appear below the main body of the site, not to the right of it. The same thing happens on your phone.
If you’re interested in using the template that I’ve created with Hakyll for your own website, let me know. I currently haven’t documented this very well, but the code is all up on github, and I’m happy to write some documentation if people are interested.