From 1c5a7783ddada7e51641bfd2e7cceca04b568884 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 18 Aug 2024 18:36:19 +0200 Subject: Fix Atom XML feed format to meet the standard --- layouts/_default/list.atom.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index edc133b..d7a9b87 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -19,7 +19,7 @@ {{- safeHTML "" }} - {{ printf `<![CDATA[%s]]>` (partial "title.html" .) | safeHTML }} + {{ partial "title.html" . }} {{ with site.Params.description }}{{ printf `` . | safeHTML }}{{ end }} {{- $output_formats := .OutputFormats }} {{- range $output_formats -}} @@ -31,7 +31,7 @@ {{ $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png") }}{{ $logo = $logo.Resize "96x96" }}{{ $logo.Permalink | absURL }} {{ $logo.Permalink | absURL }}{{ with $siteAuthor.name }} - {{ printf `` . | safeHTML }} + {{ . }} {{ with $siteAuthor.email }}{{ . | html }}{{ end }} {{ end }}{{ with site.Params.Copyright }}{{ $copyright := replace . "{year}" now.Year }}{{ $copyright = replace $copyright "©" "©" }} {{ $copyright | plainify }}{{ end }} @@ -54,8 +54,8 @@ {{ range $related }} {{ end }} - {{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}{{ if ne .Date .Lastmod }} - {{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}{{ end }} + {{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }} + {{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }} urn:uuid:{{ substr $uuid 0 8 }}-{{ substr $uuid 8 4 }}-5{{ substr $uuid 13 3 }}-{{ substr $uuid 16 1 }}9{{ substr $uuid 17 2 }}-{{ substr $uuid 21 12 }} {{ if .Params.author }} {{- $author_type := (printf "%T" .Params.author) }} -- cgit v1.2.3