Skip to main content

Baty.net

A blog about everything by Jack Baty 👋

Tag: Hugo

Hello again, Hugo

You’ll notice that baty.net is back to using Hugo1. I really like Kirby, but every time I use a platform that’s not fully static, I get twitchy, and I got twitchy.

I’m using a new theme, Anubis2, which I find to be easy to read and just the right amount of boring. It doesn’t have all the features of the PaperMod theme I was using, but it’s simpler, and simpler is what I was after.

Moving to Hugo?

I came this close to moving my blog at baty.net back to Hugo. Even worse, I considered archiving all the content and starting fresh. I mean, completely fresh. No more dragging around years of images and posts that have been converted to and from several Markdown formats for various blogging engines. I still may, but I’ve given myself a reprieve this morning. Sort of.

Another Hugo deprecation

I sure wish Hugo would stop deprecating things.

This time it’s site.Social. My theme uses that in a couple of files, and the theme’s author is busy and doesn’t always have time to fix things right away.

They now want site.Params.Social so I’ve temporarily fixed the problem myself by editing two files.

In twitter_cards.html:

{{ with site.Social.twitter -}}
# becomes
{{ with .Site.Params.Social.twitter -}}

And in opengraph.html:

{{- with site.Social.facebook_admin }}
# becomes
{{- with .Site.Params.Social.facebook_admin }}

At least now the error is gone and the site builds. I’ll need to keep an eye on the PaperMod repo for a real fix.

How many times am I going to fix RSS images for the first time?

OMG I never learn. Even when I write stuff down.

Every time I switch back to Hugo, I complain about the fact that when using relative image links in Hugo’s Page Bundles, they don’t work in the RSS feed. Then I spend time digging around old forum posts or whatever trying to fix the problem.

Except I already have fixed the problem. At least twice. Maybe just check your own notes, Jack.

From Kirby To Hugo

We’re back on Hugo for baty.net.

For the past few months, I’ve been learning how to create a blog using Kirby CMS and it’s been a blast. Kirby is pleasant, easy, and fun to use. I’m glad I did it.

I won’t bother you with a 2,000-word rationalization piece about switching. I just felt like using Hugo again, so here we are.

I missed my nice Emacs-based publishing workflow. I missed “normal” YAML front matter. I missed having a completely static website. Who knows where we’ll be in a month, but today we’re using Hugo. I went back to the PaperMod theme. I don’t love how boring it is, but it’s clean, feature-rich, frequently updated, and easy to customize.