From dfae5b04fc39f5e91644ff33a0b213b03b619ec5 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sat, 28 Sep 2024 23:00:46 +0200 Subject: [PATCH] fix some frontmatter errors (lastmod; remove .Site.LastChange) In 6932cbd I forgot to also remove `.Site.Lastchange` from `layouts/sitemap.xml` which resulted in: ~~~ ERROR deprecated: .Site.LastChange was deprecated in Hugo v0.123.0 and will be removed in Hugo 0.136.0. Use .Site.Lastmod instead. ~~~ --- .../antennas/chameleon-emcomm-3-portable/index.md | 6 ++---- .../radio-stuff/antennas/homebrew-80m-hw-endfed/index.md | 5 ++--- layouts/sitemap.xml | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/content/equipment/radio-stuff/antennas/chameleon-emcomm-3-portable/index.md b/content/equipment/radio-stuff/antennas/chameleon-emcomm-3-portable/index.md index cd46823..0d2c92f 100644 --- a/content/equipment/radio-stuff/antennas/chameleon-emcomm-3-portable/index.md +++ b/content/equipment/radio-stuff/antennas/chameleon-emcomm-3-portable/index.md @@ -1,8 +1,8 @@ --- title: Chameleon EMCOMM 3 Portable -summary: +summary: date: 2023-04-23T08:35:46+02:00 -lastmod: +# lastmod: #categories: #- amateur-radio #tags: @@ -19,8 +19,6 @@ showWordCount: false # site_exclude: true draft: true - --- A very rugged and good working antenna, a bit heavy for my taste. - diff --git a/content/equipment/radio-stuff/antennas/homebrew-80m-hw-endfed/index.md b/content/equipment/radio-stuff/antennas/homebrew-80m-hw-endfed/index.md index 6f1575c..f7e37d6 100644 --- a/content/equipment/radio-stuff/antennas/homebrew-80m-hw-endfed/index.md +++ b/content/equipment/radio-stuff/antennas/homebrew-80m-hw-endfed/index.md @@ -1,8 +1,8 @@ --- title: Homebrew 80m half-wave end-fed antenna -summary: +summary: date: 2023-05-01T11:44:57+02:00 -lastmod: +# lastmod: #categories: #- amateur-radio #tags: @@ -21,7 +21,6 @@ showWordCount: false # site_exclude: true draft: true - --- This is the long version of my portable homebrew half-wave end-fed antenna. diff --git a/layouts/sitemap.xml b/layouts/sitemap.xml index 4761471..3ceba72 100644 --- a/layouts/sitemap.xml +++ b/layouts/sitemap.xml @@ -4,7 +4,7 @@ {{ if not .Params.site_exclude }} {{ .Permalink | absURL }}{{ if not .Lastmod.IsZero }} - {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ else }}{{ .Site.LastChange.Format "2006-01-02T15:04:05-07:00" }}{{ end }}{{ with .Sitemap.ChangeFreq }} + {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ else }}{{ .Site.Lastmod.Format "2006-01-02T15:04:05-07:00" }}{{ end }}{{ with .Sitemap.ChangeFreq }} {{ . }}{{ else }}weekly{{ end }}{{ if ge .Sitemap.Priority 0.0 }} {{ .Sitemap.Priority }}{{ else }}0.5{{ end }}