diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2021-06-04 22:13:44 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2021-06-04 22:13:44 -0600 |
commit | 11b9e8505b8a92555cce6615f19268a620e9ce53 (patch) | |
tree | e39ce9da68045d7aa6c5cde7f09e2b5185262d18 /plt/rss.xml | |
parent | 30607ae87ed36289d860a41f8027900bebeec1e8 (diff) |
refactor and add support for jinija
Diffstat (limited to 'plt/rss.xml')
-rw-r--r-- | plt/rss.xml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/plt/rss.xml b/plt/rss.xml new file mode 100644 index 0000000..99b2b49 --- /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>{{site_title}}</title> + <link>{{site_base_url}}</link> + <atom:link href="{{site_base_url}}/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>{{run_date}}</pubDate> + <lastBuildDate>{{run_date}}</lastBuildDate> + <generator>pyssg v{{pyssg_version}}</generator> + <docs>https://validator.w3.org/feed/docs/rss2.html</docs> + <ttl>30</ttl> + <image> + <url>{{site_base_static_url}}/images/blog.png</url> + <title>{{site_title}}</title> + <link>{{site_base_url}}</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]}}</category> + {%endfor%} + <description>{{p.summary}}</description> + <content:decoded><![CDATA[{{p.content}}]]></content:decoded> + </item> + {%endfor%} + </channel> +</rss> |