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-20 17:46:31 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-20 17:46:31 +0700
commit09f668df44432da378da7b251ea4bd4a011d62c6 (patch)
tree75da35ce7f750cefa17c8323f3bc6fde1cf68326 /_rss
parentafcf9702d8ea4014349561025865e85326657d84 (diff)
downloadsite-09f668df44432da378da7b251ea4bd4a011d62c6.tar.gz
Join Fediring
Diffstat (limited to '_rss')
-rw-r--r--_rss/item.xml47
1 files changed, 8 insertions, 39 deletions
diff --git a/_rss/item.xml b/_rss/item.xml
index 412148a..76f892a 100644
--- a/_rss/item.xml
+++ b/_rss/item.xml
@@ -1,45 +1,14 @@
-<!--
-This is based on Yandex's https://yandex.com/support/zen/website/rss-modify.html
-
-The scope of this segment is the LOCAL scope (page variables). For instance 'rss_title'.
-
-Notes:
-* the local var rss_description (or rss) *must* be given otherwise the item
-is not generated.
-* rss_title if not given is inferred from page title
-* rss_pubdate if not given is inferred from the date of last modification
-* the full content is not added by default but can be if the variable rss_full_content
-is set to true (either globally or locally).
-* RFC822 or RFC1123 is a date format required by RSS.
-* there is debate about supporting one or several enclosures
-(see https://www.rssboard.org/rss-profile#element-channel-item-enclosure).
-We use the conservative 'only one' approach by default but you could tweak this by
-defining your own `rss_enclosures` variable with a list of string and use that.
--->
 <item>
-  <title><![CDATA[{{fd2rss rss_title}}]]></title>
+  <title>{{fd2rss rss_title}}</title>
   <link>{{fd_full_url}}</link>
   <guid>{{fd_full_url}}</guid>
-  <description><![CDATA[{{fd2rss rss_description}}]]></description>
-
-  <!-- note that fd_page_html is already HTML, so we don't use fd2rss here -->
-  {{if rss_full_content}}
+  <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}}]]>
+    <![CDATA[{{fix_relative_links fd_page_html}}
+    <a href="{{mailto_comment}}">Reply</a>]]>
   </content:encoded>
-  {{end}}
-
-  <!-- RFC1123 enforces a RSS-compliant date formatting -->
-  <pubDate>{{RFC822 rss_pubdate}}</pubDate>
-
-  {{isnotempty rss_author}}<author>{{rss_author}}</author>{{end}}
-  {{isnotempty author}}
-  <atom:author>
-    <atom:name>{{author}}</atom:name>
-  </atom:author>
-  {{end}}
-
-  {{isnotempty rss_category}}<category>{{rss_category}}</category>{{end}}
-  {{isnotempty rss_comments}}<comments>{{rss_comments}}</comments>{{end}}
-  {{isnotempty rss_enclosure}}<enclosure>{{rss_enclosure}}</enclosure>{{end}}
+  <comments><![CDATA[{{comments}}]]></comments>
+  <wfw:commentRss>{{comment_rss}}</wfw:commentRss>
 </item>