diff options
Diffstat (limited to 'themes/pelican-elegant-1.3/templates/feeds.html')
-rw-r--r-- | themes/pelican-elegant-1.3/templates/feeds.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/themes/pelican-elegant-1.3/templates/feeds.html b/themes/pelican-elegant-1.3/templates/feeds.html new file mode 100644 index 0000000..b7616c9 --- /dev/null +++ b/themes/pelican-elegant-1.3/templates/feeds.html @@ -0,0 +1,36 @@ +{% if FEED_ALL_ATOM %} + <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} - Full Atom Feed" /> +{% endif %} +{% if FEED_ALL_RSS %} + <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME|striptags }} - Full RSS Feed" /> +{% endif %} +{% if FEED_ATOM %} + <link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} - Atom Feed" /> +{% endif %} +{% if FEED_RSS %} + <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME|striptags }} - RSS Feed" /> +{% endif %} +{% if CATEGORY_FEED_ATOM %} + {% for category in categories %} + {% set cat_name = category[0]|replace(' ', '-') %} + <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(cat_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} - {{category[0]}} Category Atom Feed" /> + {% endfor %} +{% endif %} +{% if CATEGORY_FEED_RSS %} + {% for category in categories %} + {% set cat_name = category[0]|replace(' ', '-') %} + <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(cat_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} - {{category[0]}} Category RSS Feed" /> + {% endfor %} +{% endif %} +{% if TAG_FEED_ATOM %} + {% for tag in tags %} + {% set tag_name = tag[0]|replace(' ', '-') %} + <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} - {{tag[0]}} Tag Atom Feed" /> + {% endfor %} +{% endif %} +{% if TAG_FEED_RSS %} + {% for tag in tags %} + {% set tag_name = tag[0]|replace(' ', '-') %} + <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} - {{tag[0]}} Tag RSS Feed" /> + {% endfor %} +{% endif %} |