summaryrefslogtreecommitdiff
path: root/pyssg.xyz/plt/rss.xml
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-12-05 05:03:45 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-12-05 05:03:45 -0600
commit0b8441c79b047f81526bbb83febc40d7530e35d6 (patch)
tree71f4f3b51685fc81cda226476302c9084146ab39 /pyssg.xyz/plt/rss.xml
parente69392a52f102d169c7d80994d169ba0743747a1 (diff)
add extra configuration for more control, add pyssg.xyz example
this is the first step towards creating a way to handle multiple subdomains/configs in a single run for a more cohesive site generation
Diffstat (limited to 'pyssg.xyz/plt/rss.xml')
-rw-r--r--pyssg.xyz/plt/rss.xml39
1 files changed, 39 insertions, 0 deletions
diff --git a/pyssg.xyz/plt/rss.xml b/pyssg.xyz/plt/rss.xml
new file mode 100644
index 0000000..6a3eb00
--- /dev/null
+++ b/pyssg.xyz/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>Short site description.</description>
+ <language>en-us</language>
+ <category>Blog</category>
+ <copyright>Copyright 2021 Somebody</copyright>
+ <managingEditor>some@one.com (Sombody)</managingEditor>
+ <webMaster>some@one.com (Sombody)</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']}}/images/blog.png</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>