summaryrefslogtreecommitdiff
path: root/layouts/rss.xml
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2025-12-06 14:28:20 +0800
committerBigCoke233 <hi@guhub.cn>2025-12-06 14:28:20 +0800
commit0a743a578aca411efa69d5300c8b49cab3ee57ce (patch)
treeccd50a93637e0aca1b22d9e37985bdf810d7907e /layouts/rss.xml
parent5e84a2d579a26605f00acdccaaadef4242f421f5 (diff)
feat: add a link to action menu (commnt and like button) after RSS body
Former-commit-id: c8ce9509dac7ff88b33a0d6ef9c81a542281717a
Diffstat (limited to 'layouts/rss.xml')
-rw-r--r--layouts/rss.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/rss.xml b/layouts/rss.xml
index e8d581fc..026d9a87 100644
--- a/layouts/rss.xml
+++ b/layouts/rss.xml
@@ -53,7 +53,10 @@
<pubDate>{{ .PublishDate.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>
+ {{ .Content | transform.XMLEscape | safeHTML }}
+ {{ printf `<div style="text-align:right;"><a href="%s#action-menu">%s</a></div>` .Permalink (T "rss_comment_link") | transform.XMLEscape | safeHTML }}
+ </description>
</item>
{{- end }}
</channel>