Written mainly for my own record.
This blog is a static website generated using Hugo. The sources are hosted on GitHub and the website is compiled and served by static website hosting service Netlify, which monitors the afermentioned git repo and recompiles the site each time it sees a new commit.
The content can be added or modified using git directly or via forestry.io. Forestry can access a GitHub (or GitLab) repo containing source files of a Hugo project and commit content on user’s behalf.
The domain name is unfortunately still with my old provider.
Unfortunately, my domain name provider (Domain Factory) doesn’t support domain name flattening. I ended up implementing the setup described here: https://www.netlify.com/docs/custom-domains/#dns-configuration
The www subdomain points to my primary domain at Netlify while an “A” DNS entry is used to point the APEX domain to Netlify’s load balancer’s IP address. Apparently this makes load balancing and regional content distribution more difficult.
wergieluk.com A 126.96.36.199 www.wergieluk.com CNAME agitated-hodgkin-44.netlify.com
So far I am very happy with Netlify. The setup was super smooth and everything worked out-of-the-box. They even automatically provisioned a free SSL certificate from Let’s Encrypt. The documentation is another strong point of the offering: https://www.netlify.com/docs/
- Apparently it’s better to use the good old www subdomain as the root: https://www.netlify.com/blog/2017/02/28/to-www-or-not-www/
- Hugo documentation is hard to understand and sometimes quite confusing. There is a very nice Hugo tutorial by Mike Dane available on YouTube: (https://www.youtube.com/watch?v=qtIqKaDlqXo&list=PLLAZ4kZ9dFpOnyRlyS-liKL5ReHDcj4G3)
- In Hugo, setting
katex: truein the front matter of a document activates the rendering of LaTeX formulas. Mmark is an alternative markdown parser with a better support of inline math than the standard “blackfriday” parser.
- Website sources on GitHub: (https://github.com/jwergieluk/wergieluk-com)