New Year, New Site
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
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.
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!
So after years of manual
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.
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!
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.
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.
https://strapi.io/blog/guide-to-using-hugo-site-generator Accessed on 19/12/2021. ↩︎