Skip to content

Commit

Permalink
Add email reply link to RSS
Browse files Browse the repository at this point in the history
  • Loading branch information
dce committed Mar 14, 2024
1 parent a89b3a2 commit c12b8b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion themes/v2/layouts/_default/rss.xml
Expand Up @@ -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>
Expand Down

0 comments on commit c12b8b4

Please sign in to comment.