Added
- Introduced a new partial template
site-last-mod.htmlto handle site last modification date more robustly across Hugo versions. This change accommodates the deprecation of.Site.LastChangein favour of.Site.Lastmodfor Hugo versions equal to or greater than 0.123.0. Usage:{{ $siteLastMod := partial "site-last-mod.html" . }} - Introduced a new partial template
site-author.htmlto handle site author information more consistently across Hugo versions. This change accommodates the deprecation ofsite.Authorin favour ofsite.Params.authorfor Hugo versions equal to or greater than 0.124.0. Usage:{{ $siteAuthor := partial "site-author.html" . }} {{ with $siteAuthor.name }} {{ . }} {{ end }} {{ with $siteAuthor.email }} {{ . }} {{ end }} {{ with $siteAuthor.github }} {{ . }} {{ end }} {{ with $siteAuthor.twitter }} {{ . }} {{ end }} {{ with $siteAuthor.location }} {{ . }} {{ end }} - Provided support for giscus comments, enabling interactive discussions on site pages. This includes:
- A new JavaScript file (
giscus.js) handling the dynamic loading of giscus scripts based on site configuration. - Configuration settings for giscus in the
exampleSite/config/_default/params.yamlto allow users to easily enable and configure giscus comments from the site's parameters.
- A new JavaScript file (
Changed
- Updated the minimum required Hugo version for this theme to 0.121.0.
- Refactored the theme configuration in
exampleSite/config/_default/config.yamlto use Hugo's module imports instead of thethemevariable. The theme's repository path is now specified under theimportssection in themoduleblock. This change improves clarity and aligns with Hugo's recommended practices for managing theme dependencies. - Replaced the deprecated
--verboseflag with--logLevel infoin the npm script forserverinpackage.json. This change addresses a deprecation warning introduced in Hugo v0.114.0, ensuring compatibility with future versions of Hugo. - Replace Go script with Node.js implementation for Netlify redirects patching or Deploy Preview context.
- Updated Atom and RSS feed templates to use the
site-last-mod.htmlpartial for dynamically setting the site's last modification date.- In
list.atom.xml, replacedsite.LastChangewith$siteLastModin the<updated>tag. - In
list.feed.xml, replacedsite.LastChangewith$siteLastModin the<lastBuildDate>tag.
- In
- Updated
humans.txt, Atom feed, RSS feed, JSON feed, author partial, and schema.org Article template to use thesite-author.htmlpartial for retrieving site author information. - Moved site author configuration from
config.yamltoparams.yamlto align with the recommended usage ofsite.Params.author.
Fixed
- Fix Atom / RSS feed formats to meet the standard
- Fixed broken link in documentation.