From 756d4234351b59917ee79fef2c7fe64db1fcce7f Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Mon, 10 Jun 2024 21:05:01 +0200 Subject: [PATCH] Fix deprecation warning hugo.toml: change hugo min version --- README.md | 2 +- hugo.toml | 2 +- layouts/_default/list.atom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 27f40e86..0172f486 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ please share it by [posting a link](https://github.com/willfaught/paige/discussi ## Setup -1. [Install Hugo](https://gohugo.io/installation/) (the extended version, and at least 0.111.3). +1. [Install Hugo](https://gohugo.io/installation/) (the extended version, and at least 0.123.0). For Homebrew on Mac: diff --git a/hugo.toml b/hugo.toml index 5e40c28e..599ef326 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,7 +2,7 @@ suffixes = ["xml"] [module.hugoversion] -min = "0.111.3" +min = "0.123.0" extended = true # Default mounts diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index eb7baad0..aa131730 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -10,7 +10,7 @@ {{ $rights := site.Copyright | markdownify }} {{ $subpages := slice }} {{ $subtitle := $page.Description | markdownify }} -{{ $updated := site.LastChange.Format $format }} +{{ $updated := site.Lastmod.Format $format }} {{ range $page.RegularPagesRecursive.ByPublishDate.Reverse }} {{ if not (.Param "paige.feed.hide_page") }}