diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | templates/feed.xml | 27 |
2 files changed, 29 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html index 6476091..5e71e6b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -15,6 +15,8 @@ {% for dir in navbar %} <b> <a href="/site/{{ dir }}">{{ dir }}/</a> |</b> {% endfor %} + <!-- Add icons here --> + <a href="/feed.xml"><img src="/static/rss.svg"></a> </div> <h2>{{ title }}</h2> <div class="content"> diff --git a/templates/feed.xml b/templates/feed.xml new file mode 100644 index 0000000..a252134 --- /dev/null +++ b/templates/feed.xml @@ -0,0 +1,27 @@ + +<rss version="2.0"> + <channel> + <title>{{ config.TITLE }}</title> + <link>{{ config.LINK }}</link> + <description>{{ config.DESCRIPTION }}</description> + <!-- Optional --> + <language>{{ config.LANGUAGE }}</language> + <pubDate> {{ config.PUBDATE }}</pubDate> + <lastBuildDate> {{ config.LASTBUILDDATE }}</lastBuildDate> + <docs>{{ config.DOCS }}</docs> + <generator>{{ config.GENERATOR }}</generator> + <managingEditor>{{ config.AUTHOR }}</managingEditor> + <webMaster>{{ config.WEBMASTER }}</webMaster> + {% for item in items %} + <item> + <title>{{ item.TITLE }}</title> + <link>{{ item.LINK }}</link> + <guid>{{ item.LINK }}</guid> + <description>{{ item.DESCRIPTION }}</description> + <pubDate>{{ item.LAST_UPDATE }}</pubDate> + <category>{{ item.SITE_DIR }}</category> + <author>{{ config.AUTHOR }}</author> + </item> + {% endfor %} + </channel> +</rss> |