mirror of
https://github.com/alvierahman90/gronk.git
synced 2025-12-13 18:54:00 +00:00
add blog mode
This commit is contained in:
23
templates/rss.xml
Normal file
23
templates/rss.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
|
||||
<channel>
|
||||
<title>{{ title }}</title>
|
||||
<description>{{ description }}</description>
|
||||
<language>{{ language }}</language>
|
||||
<link>{{ link }}</link>
|
||||
<atom:link href="{{ link }}/feed.xml" rel="self" type="application/rss+xml" />
|
||||
|
||||
{% for post in posts %}
|
||||
<item>
|
||||
<title>{{ post['title']}}</title>
|
||||
<guid>{{ base_url }}{{ post['link'] }}</guid>
|
||||
{% if post['pub_date'] %}
|
||||
<pubDate>{{ post['pub_date'] }}</pubDate>
|
||||
{% endif %}
|
||||
<description><![CDATA[{{ post['description']|safe }}]]></description>
|
||||
</item>
|
||||
{% endfor %}
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in New Issue
Block a user