summaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2024-04-14 10:04:36 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2024-04-14 11:22:13 +0200
commitaaad4f7b8fdd96573e9c3c3910d8c8a2c418841b (patch)
treea792284fbd546db3f62f1cabeca39bdac2f2ddff /CHANGELOG.md
parent0c6aad8d28d9398dc36c70149e221f3af62203cc (diff)
downloadgohugo-theme-ed-aaad4f7b8fdd96573e9c3c3910d8c8a2c418841b.tar.gz
Use .Site.Lastmod if .Site.Hugo.Version greater than or equal to v0.123.0
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md20
1 files changed, 17 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fb46543..b3e4913 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased](https://github.com/sergeyklay/gohugo-theme-ed/compare/v0.7.0...HEAD)
+### Added
+
+- Introduced a new partial template `site-last-mod.html` to handle site last
+ modification date more robustly across Hugo versions. This change accommodates
+ the deprecation of `.Site.LastChange` in favour of `.Site.Lastmod` for Hugo
+ versions equal to or greater than 0.123.0. Usage:
+ ```
+ {{ $siteLastMod := partial "site-last-mod.html" . }}
+ ```
+
### Changed
- Updated the minimum required Hugo version for this theme to 0.114.0.
@@ -20,9 +30,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
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
- for Deploy Preview context. This change aims to eliminate the dependency on Go
- for the theme's development environment, and streamline the project's technology
- stack.
+ for Deploy Preview context.
+- Updated Atom and RSS feed templates to use the `site-last-mod.html` partial for
+ dynamically setting the site's last modification date.
+ - In `list.atom.xml`, replaced `site.LastChange` with `$siteLastMod` in the
+ `<updated>` tag.
+ - In `list.feed.xml`, replaced `site.LastChange` with `$siteLastMod` in the
+ `<lastBuildDate>` tag.
### Fixed