Undo content fix

This commit is contained in:
Miguel de la Cruz 2024-01-07 11:27:19 +01:00
parent 477a0e17ca
commit 5f843dbeef

View file

@ -58,14 +58,13 @@
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end }} {{- end }}
{{- range $pages }} {{- range $pages }}
{{ $content := (or .Content .Summary) }}
<item> <item>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }} {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description>{{ $content | transform.XMLEscape | safeHTML }}</description> <description>{{ .Content | transform.XMLEscape | safeHTML }}</description>
</item> </item>
{{- end }} {{- end }}
</channel> </channel>