Special postroll XML rules

This commit is contained in:
Brandon Rozek 2026-04-26 20:50:27 -04:00
parent 5b094969e9
commit 4383e71b92
3 changed files with 10 additions and 45 deletions

View file

@ -0,0 +1,9 @@
<item>
<title>Postroll: {{ .Title }}</title>
<link>{{ with .Params.url }}{{ . }}{{ else }}{{ .Permalink }}{{ end }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<author>{{ .Params.author }}</author>
<guid>{{ with .Params.url }}{{ . }}{{ else }}{{ .Permalink }}{{ end }}</guid>
{{ printf `<description><![CDATA[<p><strong>Brandon's Comment:</strong></p>%s]]></description>` .Summary | safeHTML }}
{{ printf `<content:encoded><![CDATA[<p><strong>Brandon's Comment:</strong></p>%s]]></content:encoded>` .Content | safeHTML }}
</item>