How this website was built#blog #webdevelopment #hugo #static site generator
This whole website does not use a traditional CMS. It is 100% statically generated using Hugo. Hugo is a static site generator, which allows me to write new pages as simple and portable Markdown files and then generate the whole website based on the template I wrote for this.
Sharing is caring
If you like the content you see here, feel free to copy the URL into any social media feed or messenger you want, to share it with your friends. Actually I would be very happy about this.
This whole website, incl. templates and the hugo site, is available at Github. Feel free to take a look at it and maybe use my template. I use git here, because it allows me to track changes and it’s also a very easy way for me to write from wherever I want.
Since this website is on Github I am able to build and upload it automatically every night using a script that pulls the latest changes from the repository, build the website using Hugo and finally uploads it to the ftp server. The script runs on a RaspberryPi that I use as home service host. This allows me to just write content, use Hugo’s built-in draft and release date functionality and push it to the repository and the cronjob will update the website automatically once per day. This and the fact that the whole content is Markdown, which can be edited with a simple text editor, allows me to write from wherever I want. In theory I could write a new article on my phone, push it to the repository and let the cronjob do its job. The script that does all of this here can be found here.