From 97fd6f12ada5ea8ce3cad1daf9d145a27a620c2e Mon Sep 17 00:00:00 2001 From: teldra Date: Fri, 24 Jun 2022 02:35:36 +0200 Subject: [PATCH] fix atom feed --- themes/buha/layouts/_default/list.atom.xml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/themes/buha/layouts/_default/list.atom.xml b/themes/buha/layouts/_default/list.atom.xml index 19fa31b..997ba6f 100644 --- a/themes/buha/layouts/_default/list.atom.xml +++ b/themes/buha/layouts/_default/list.atom.xml @@ -20,7 +20,7 @@ {{.}}{{ with $.Site.Author.email }} {{.}}{{end}} {{end}} - Hugo -- gohugo.io{{ range $pages }} + Hugo -- gohugo.io{{ range $pages.ByLastmod.Reverse }} {{ `<![CDATA[` | safeHTML }}{{ .Title }}]]> @@ -31,7 +31,17 @@ {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ if .Content }} - {{ ` + {{ ` lala
lala + {{ end }} + {{ end }} + ]]>
{{ end }}
{{ end }}