Add email reply link to RSS

This commit is contained in:
David Eisinger
2024-03-14 12:24:19 -04:00
parent a89b3a252c
commit c12b8b4ce3

View File

@@ -64,7 +64,10 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | transform.XMLEscape | safeHTML }}</description>
<description>
{{ $mailTo := printf "<p><a href=\"mailto:%s?subject=%s\">✍️ Reply by email</a></p>" $authorEmail .Title }}
{{ printf "%s%s" .Content $mailTo | transform.XMLEscape | safeHTML }}
</description>
</item>
{{- end }}
</channel>