The site broke recently. Somehow Hugo had stopped rendering posts or tags and the homepage looked like it had no content.
Turns out a Page's
.URL field was deprecated for new syntax in an update of Hugo:
.URLfield: 0.55.4. Maybe Netlify rebuilt my site in the intervening months?
In any case, this became a good moment to upgrade Hugo and give my site some much needed maintenance.
- So I got rid of some dead code from when I was experimenting with Netlify Functions and building the site using Gulp.
- Reran webhint and Lighthouse and fixed some hints about security headers, resource crossorigin attribbutes, and upgrading to
sha384for Subresource Integrity hashes.
- Updated my robots.txt to skip some pages that aren't worth crawling.
- Moved my posts from
/post/<title>/to the Hugo conventional
/posts/<title>/and added redirects.
- Fixed up some width styling to make blog posts more readable.
- Increased the colour contrast of some lighter elements so that they meet accessibility standards
- Changed the colours of the pagination elements to draw people into reading the next page as opposed to noticing the current page number.
- Used the CSS grayscale filter to make the social media share links less noticeable.
- Added a search field for the site that uses DuckDuckGo as a backend.
It's been a fun bit of website design!