From b46c9ba7eae23535cac173ef92917a913c92197d9de711ef3956cf1c6c99a23d Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 24 Feb 2023 00:00:00 +0000 Subject: Fix date rendering of rights tag in Atom feeds --- layouts/index.atom.xml | 2 +- layouts/index.gemini_atom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts') diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml index ffbedc9..f7abe7e 100644 --- a/layouts/index.atom.xml +++ b/layouts/index.atom.xml @@ -10,7 +10,7 @@ {{ .Site.Author.email }} Hugo -- gohugo.io - {{ .Site.Copyright }} {{ .Site.Params.beginCopyrightYear }}-{{ now.Format "2006" }} {{ .Site.Author.name }} + {{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }} {{ .Site.Params.Description }}{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }} {{ .Permalink }} diff --git a/layouts/index.gemini_atom.xml b/layouts/index.gemini_atom.xml index 7025a00..dc1b563 100644 --- a/layouts/index.gemini_atom.xml +++ b/layouts/index.gemini_atom.xml @@ -10,7 +10,7 @@ {{ .Site.Author.email }} Hugo -- gohugo.io - {{ .Site.Copyright }} {{ .Site.Params.beginCopyrightYear }}-{{ now.Format "2006" }} {{ .Site.Author.name }} + {{ replace .Site.Copyright "{currentYear}" (now.Format "2006") }} {{ .Site.Params.Description }}{{ range first .Site.Config.Services.RSS.Limit .Site.RegularPages }} {{ replace .Permalink "https://" "gemini://" | safeURL }} -- cgit v1.2.3