summaryrefslogtreecommitdiff
path: root/plt/rss.xml
diff options
context:
space:
mode:
Diffstat (limited to 'plt/rss.xml')
-rw-r--r--plt/rss.xml39
1 files changed, 39 insertions, 0 deletions
diff --git a/plt/rss.xml b/plt/rss.xml
new file mode 100644
index 0000000..5f6231b
--- /dev/null
+++ b/plt/rss.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<rss version="2.0"
+ xmlns:atom="http://www.w3.org/2005/Atom"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/">
+ <channel>
+ <title>{{config['title']}}</title>
+ <link>{{config['url']['main']}}</link>
+ <atom:link href="{{config['url']['main']}}/rss.xml" rel="self" type="application/rss+xml"/>
+ <description>{{config['description']}}</description>
+ <language>en-us</language>
+ <category>{{config['rss_gategory']}}</category>
+ <copyright>Copyright 2023 {{config['author']}}</copyright>
+ <managingEditor>{{config['author_email']}} ({{config['author']}})</managingEditor>
+ <webMaster>{{config['author_email']}} ({{config['author']}})</webMaster>
+ <pubDate>{{config['info']['rss_run_date']}}</pubDate>
+ <lastBuildDate>{{config['info']['rss_run_date']}}</lastBuildDate>
+ <generator>pyssg v{{config['info']['version']}}</generator>
+ <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
+ <ttl>30</ttl>
+ <image>
+ <url>{{config['url']['static']}}/{{config['url']['default_image']}}</url>
+ <title>{{config['title']}}</title>
+ <link>{{config['url']['main']}}</link>
+ </image>
+ {%for p in all_pages%}
+ <item>
+ <title>{{p.title}}</title>
+ <link>{{p.url}}</link>
+ <guid isPermaLink="true">{{p.url}}</guid>
+ <pubDate>{{p.cdate_rss}}</pubDate>
+ {%for t in p.tags%}
+ <category>{{t[0].lower().capitalize()}}</category>
+ {%endfor%}
+ <description>{{p.summary}}</description>
+ <content:encoded><![CDATA[{{p.content}}]]></content:encoded>
+ </item>
+ {%endfor%}
+ </channel>
+</rss>