about summary refs log tree commit diff homepage
path: root/_rss
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-23 17:41:30 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-23 21:18:32 +0700
commit1d42abf23d59de9684c80c290c4498d81ce9977b (patch)
tree69207c35109e50fda8c489d98b107680217b1d72 /_rss
parentc9e639f71b686093e6b53097f0accc0cfbb77303 (diff)
downloadsite-1d42abf23d59de9684c80c290c4498d81ce9977b.tar.gz
Add initial commenting support
Diffstat (limited to '_rss')
-rw-r--r--_rss/comments.xml11
-rw-r--r--_rss/head.xml4
-rw-r--r--_rss/item.xml6
3 files changed, 12 insertions, 9 deletions
diff --git a/_rss/comments.xml b/_rss/comments.xml
index be8fa6c..13d514b 100644
--- a/_rss/comments.xml
+++ b/_rss/comments.xml
@@ -4,7 +4,14 @@
      xmlns:content="http://purl.org/rss/1.0/modules/content"
      xmlns:dc="http://purl.org/dc/elements/1.1">
 <channel>
-<title>Comments on {{fd2rss rss_title}}</title>
+<title>Re: {{fd2rss rss_title}}</title>
 <link>{{fd_full_url}}</link>
-<description></description>
+<atom:link href="{{comment_rss_feed_url}}"
+           rel="self"
+           type="application/rss+xml"/>
+<description>Comments on {{fd2rss rss_title}}</description>
+<language>en</language>
 <generator>Formbox</generator>
+{{comment_rss_items}}
+</channel>
+</rss>
diff --git a/_rss/head.xml b/_rss/head.xml
index 929038f..e27fe5e 100644
--- a/_rss/head.xml
+++ b/_rss/head.xml
@@ -6,9 +6,7 @@
 <channel>
 <title>{{website_title}}</title>
 <link>{{website_url}}</link>
-<atom:link href="{{fd_rss_feed_url}}"
-           rel="self"
-           type="application/rss+xml"/>
+<atom:link href="{{fd_rss_feed_url}}" rel="self" type="application/rss+xml"/>
 <description>{{website_description}}</description>
 <copyright><![CDATA[{{copyright}} under CC BY-SA 4.0]]></copyright>
 <language>en</language>
diff --git a/_rss/item.xml b/_rss/item.xml
index 76f892a..8a808ff 100644
--- a/_rss/item.xml
+++ b/_rss/item.xml
@@ -5,10 +5,8 @@
   <description>{{fd2rss rss_description}}</description>
   {{for tag in tags}}<category>{{tag}}</category>{{end}}
   <pubDate>{{RFC822 rss_pubdate}}</pubDate>
-  <content:encoded>
-    <![CDATA[{{fix_relative_links fd_page_html}}
-    <a href="{{mailto_comment}}">Reply</a>]]>
-  </content:encoded>
+  <content:encoded><![CDATA[{{fix_relative_links fd_page_html}}
+    <a href="{{mailto_comment}}">Reply via email</a>]]></content:encoded>
   <comments><![CDATA[{{comments}}]]></comments>
   <wfw:commentRss>{{comment_rss}}</wfw:commentRss>
 </item>