diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-14 15:30:44 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-14 15:38:50 +0200 |
| commit | 23d77288040ca113dbc797aa2eaff6ba2a32f324 (patch) | |
| tree | c14a8417684dd54ea7425f7bc64d52d315973ad4 /CHANGELOG.md | |
| parent | 77b73fceb49bff397dab6badb7df8e821960fe2b (diff) | |
| download | gohugo-theme-ed-23d77288040ca113dbc797aa2eaff6ba2a32f324.tar.gz | |
Move site author configuration to params
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index b3e4913..085f44b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ``` {{ $siteLastMod := partial "site-last-mod.html" . }} ``` +- Introduced a new partial template `site-author.html` to handle site author + information more consistently across Hugo versions. This change accommodates + the deprecation of `site.Author` in favour of `site.Params.author` for 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 }} + ``` ### Changed @@ -37,6 +50,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 `<updated>` tag. - In `list.feed.xml`, replaced `site.LastChange` with `$siteLastMod` in the `<lastBuildDate>` tag. +- Updated `humans.txt`, Atom feed, RSS feed, JSON feed, author partial, and + schema.org Article template to use the `site-author.html` partial for + retrieving site author information. +- Moved site author configuration from `config.yaml` to `params.yaml` to align + with the recommended usage of `site.Params.author`. ### Fixed |
