<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Web on The Gnu Pit</title><link>https://gnupit.net/web/</link><description>Recent content in Web on The Gnu Pit</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 10 Aug 2025 07:12:15 -0500</lastBuildDate><atom:link href="https://gnupit.net/web/index.xml" rel="self" type="application/rss+xml"/><item><title>Hugo .Site.Params.Author</title><link>https://gnupit.net/posts/updating_hugo_theme/</link><pubDate>Sun, 10 Aug 2025 07:12:15 -0500</pubDate><guid>https://gnupit.net/posts/updating_hugo_theme/</guid><description>&lt;p&gt;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 &lt;a href="https://gohugo.io/"&gt;Hugo&lt;/a&gt; with the &lt;a href="https://github.com/Vimux/Mainroad"&gt;Mainroad&lt;/a&gt; theme and I hadn&amp;rsquo;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.&lt;/p&gt;
&lt;p&gt;The error was:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Site.Author was deprecated in Hugo v0.124.0 and subsequently removed.
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Implement taxonomy &amp;#39;author&amp;#39; or use .Site.Params.Author instead.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;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 &amp;ldquo;.Site.Author&amp;rdquo; with &amp;ldquo;.Site.Params.Author&amp;rdquo;. I also changed the &amp;ldquo;Site.Params.Author.avatar&amp;rdquo; to &amp;ldquo;Site.Params.Author.image&amp;rdquo;. 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 &amp;ldquo;[Author]&amp;rdquo; section I renamed to [Params.author]&amp;quot; and changed &amp;ldquo;avatar&amp;rdquo; to &amp;ldquo;image&amp;rdquo;.&lt;/p&gt;</description></item></channel></rss>