Add email reply link to RSS
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user