Development

Hugo .Site.Params.Author

I dusted off the site and was going to write about my experience updating Debian 12 Bookworm to Debian 13 Trixie on two servers. I use Hugo with the Mainroad theme and I hadn’t updated the site in quite a while. I updated Hugo to the latest stable version and tried to rebuild the site to include the new content. I ran into an error.

The error was:

.Site.Author was deprecated in Hugo v0.124.0 and subsequently removed.
 Implement taxonomy 'author' or use .Site.Params.Author instead.  

I grepped the files in the theme and found .Site.Author in two files - author.html and authorbox.html. I replaced all the instances of “.Site.Author” with “.Site.Params.Author”. I also changed the “Site.Params.Author.avatar” to “Site.Params.Author.image”. Authorbox was now activated but nothing was displaying. So I looked at a couple of other newer themes to see what parameter names in config.toml needed to be changed. The “[Author]” section I renamed to [Params.author]" and changed “avatar” to “image”.

Atom Uninstall

No, the Atom text editor does not have an uninstaller. On Mac OS X, to completely uninstall, remove the following files and directories:

~/.atom
/usr/local/bin/atom (NB only present if command line tools installed)
/usr/local/bin/apm  (NB only present if command line tools installed)
/Applications/Atom.app
~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.github.atom.sfl
~/Library/Preferences/com.github.atom.plist
~/Library/Application Support/com.github.atom.ShipIt
~/Library/Application Support/Atom
~/Library/Caches/com.github.atom.ShipIt/
~/Library/Saved Application State/com.github.atom.savedState
~/Library/Logs/Atom/
~/Library/Preferences/com.github.atom.helper.plist
~/Library/Preferences/com.github.atom.LSSharedFileList.plist
~/Library/Preferences/ByHost/com.github.atom.ShipIt.<letters/numbers>.plist
~/Library/Saved Application State/com.github.atom.savedState

NB: The <letter/numbers> in the file name located in ~/Library/Preferences/ByHost appear to be a unique string per machine.

Thoughts on the Atom Editor

I installed the Atom text editor quite a while ago and didn’t have much time to play around with it. Last week a friend of mine brought it up in conversation. She was extolling its virtues. I decided now would be a good time to try it out. I was moving a site to Hugo and it has a plugin for Hugo syntax.

So I fired it up and, my word, a decade later an editor window opened. What took it so long to open? I poked around a bit and noticed that I had installed a bunch of packages when I first downloaded it. So I disabled the vast majority of them, then restarted. A minor improvement. Disabled the rest. Restarted. Another minor improvement. Then I disabled some core packages for languages I wouldn’t use. No help for the incredibly slow start time.