davideisinger.com

My personal website
Log | Files | Refs | README

commit c12b8b4ce3c35e5288a55278c1100b230214ae07
parent a89b3a252c6932b2bdd6e34f31dcb6d3acace186
Author: David Eisinger <[email protected]>
Date:   Thu, 14 Mar 2024 12:24:19 -0400

Add email reply link to RSS

Diffstat:
Mthemes/v2/layouts/_default/rss.xml | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/themes/v2/layouts/_default/rss.xml b/themes/v2/layouts/_default/rss.xml @@ -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>