From 0d9517017017533c1fdbeadbc71bcf6cb0384717 Mon Sep 17 00:00:00 2001 From: Edd Salkield Date: Sat, 28 Jan 2023 18:58:11 +0000 Subject: [PATCH] templates: fix feed generation --- templates/_default/atom.xml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/templates/_default/atom.xml b/templates/_default/atom.xml index d702ccd..c11e40d 100644 --- a/templates/_default/atom.xml +++ b/templates/_default/atom.xml @@ -1,13 +1,23 @@ {{ `` | safeHTML }} -{{ .URL }} -{{ .Title }} -{{ site.Generated.Format "2006-01-02T15:04:05Z07:00" }} - -{{ range .Pages }} - {{ .URL }} - {{ .Title }} - {{ .Date.Format "2006-01-02T15:04:05Z07:00" }} - -{{ end -}} + {{ .Title }} + /assets/images/avatar.jpg + + {{ site.Generated.Format "2006-01-02T15:04:05Z07:00" }} + {{ site.Params.url | safeURL }}{{ .URL | safeURL }} + + {{ site.Params.author }} + {{ site.Params.email }} + {{ site.Params.url }} + + {{ range .Pages -}} + + {{ .Title }} + + {{ site.Params.url | safeURL }}{{ .URL | safeURL }} + {{ .Date.Format "2006-01-02T15:04:05Z07:00" }} + {{ .Date.Format "2006-01-02T15:04:05Z07:00" }} + {{ .Content }} + + {{ end -}} -- 2.45.2