New Year, New Site

Introduction


After many years of neglect and sitting on a default 404 error page for several years after transferring domain hosts, I’ve finally gotten around to fixing my website. When I originally created the site many years ago, the purpose was to learn something about html and css by taking on a project. It took me a while, and I was quite proud of the final output. It wasn’t perfect, but it had a fancy ‘slider carousel’ and some nice css filters in the gallery (in my defence, it was 2012…).

However, after creating it, I quickly realised that I didn’t have a whole lot to add to it and I found creating new posts for the blog a struggle. I wrote a few good posts that got some traction, but much of it was more personal in nature and possibly not of much interest to other people. The personal domain for email became the main thing I used and when I swapped providers a few years ago, the website didn’t get transferred.

**Homepage of Original Site**
Homepage of Original Site

This was probably a mistake - some of the posts were actually of interest and had lots of comments. I had been using wordpress to handle the blog but I never transferred out all the comments before just putting things on ice. So to anyone reading who may be about to do something similar - remember to back up or export things like comments as well as the raw data of the site. There is one saving grace The Wayback Machine which does a great job of keeping an archive of the web. Due to this fantastic resource I can still see snapshots of my website and the useful comments that were left. Maybe there’s a way to recover comments from this archive and re-import them to the current site? If you know how to do this, let me know in the comments below!

Version 2.0

So after years of manual html and css tinkering, I wanted something that was just as flexible but allowed easy content creation and the option to tinker and customise as required. I didn’t want to be tied to some CMS backend that limits what you can do. So I started doing some research!

So it turns out what I was looking for is a Static Site Generator, which basically takes some type of template file or files in one format and converts into lots of html and css files that can be deployed on your server. This has an advantage over dynamics sites as they should be faster to load and more secure.

And there are lots of these SSG’s out there and in various languages. Jekyll, Gatsby and Hugo are just a few of the most common. I was drawn to Hugo by the fact that all the templating is written in markdown format, but also the claims of speed. Apparently, it’s very fast!

Getting Started

Since Hugo is quite popular, there are plenty of tutorials and guides out there and I started reading reading a few 1,2 to see where to get started. While doing a bit more reading, I came across a website called Wowchemy which promises quick and easy publishing for scientific and technical audiences (That’s me!).

So that is where I decided to start with the quickstart guide. This solutions saves the website in a GitHub repository and the website is deployed using Netlify. Netlify is basically the build manager and detects any new pushes to the repository, starts a build process and then deploys your built website. By default, you are assigned a custom Netlify domain, but you can quite easily set it up to use your own custom domain as well. Obviously Netlify offers a free package for personal sites which has 300 build minutes per month, which should be more than enough for most people.

Wowchemy

Wochemy provides a few template pages for specific purposes such as individual pages or those for a research group. I cloned the Academic Resume theme, followed the instructions and had it deployed with Netlify in about 5-10 minutes. Very nice!

The wowchemy ecosystem consists of lots of elements, which are a bit like ‘building blocks’ which can be used to create a page or site. There are lots of options such as posts, publications, sliders, galleries and much more. There’s code and math support as well as easy setup of some commenting systems. There’s even an CMS available if yuo wish to mange things that way.

And because it’s based on Hugo and uses markdown, if there’s something you want to do that it doesn’t already do, you can quite easily create something bespoke to your needs.

So while setting up the site from the template was quick, I think it’s going to take me a bit longer to customize it to my liking and restore old content.

References


  1. https://kinsta.com/blog/hugo-static-site/ Accessed on 19/12/2021. ↩︎

  2. https://strapi.io/blog/guide-to-using-hugo-site-generator Accessed on 19/12/2021. ↩︎

John P. Morrissey
John P. Morrissey
Research Scientist in Granular Mechanics

My research interests include particulate mechanics, the Discrete Element Method (DEM) and other numerical simulation tools. I’m also interested in all things data and how to extract meaningful information from it.

comments powered by Disqus