diff options
author | tverrbjelke <tverrbjelke@gmx.de> | 2013-09-26 13:29:44 +0200 |
---|---|---|
committer | tverrbjelke <tverrbjelke@gmx.de> | 2013-09-26 13:29:44 +0200 |
commit | 2d81aec3b2509d56c1f3d99df3ad94a0d15d7e7d (patch) | |
tree | fccb099d548c66f4c7091841edb2ea8995d661ba /tuxlite_tbs/templates | |
parent | f65823ba3cbc2ea791cae20db8cce878faf997de (diff) | |
download | pelican-themes-2d81aec3b2509d56c1f3d99df3ad94a0d15d7e7d.tar.gz |
see http://querbalken.net/howto-activate-feeding-for-pelican-blog-en.html
Extended and fixed Pelican theme tuxlite_tbs to
* become compatible with Pelican 3.2 and 3.3 documentation: http://docs.getpelican.com/en/latest/settings.html to get the feed links working with with FEED_ATOM and FEED_RSS (which now default to "None") but also FEED_ALL_ATOM and FEED_ALL_RSS.
* enable firefox to dynamic-bookmark the feeds by adding meta data.
Diffstat (limited to 'tuxlite_tbs/templates')
-rw-r--r-- | tuxlite_tbs/templates/base.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tuxlite_tbs/templates/base.html b/tuxlite_tbs/templates/base.html index 4dd1f52..866d6a5 100644 --- a/tuxlite_tbs/templates/base.html +++ b/tuxlite_tbs/templates/base.html @@ -18,6 +18,20 @@ <link href="{{ SITEURL }}/theme/local.css" rel="stylesheet"> <link href="{{ SITEURL }}/theme/pygments.css" rel="stylesheet"> + <!-- So Firefox can bookmark->"abo this site" --> + {% if FEED_ALL_ATOM %} + <link href="{{ FEED_ALL_ATOM }}" rel="alternate" title="{{ SITENAME }}" type="application/atom+xml"> + {% endif %} + {% if FEED_ATOM %} + <link href="{{ FEED_ATOM }}" rel="alternate" title="{{ SITENAME }}" type="application/atom+xml"> + {% endif %} + {% if FEED_RSS %} + <link href="{{ FEED_RSS }}" rel="alternate" title="{{ SITENAME }}" type="application/rss+xml"> + {% endif %} + {% if FEED_ALL_RSS %} + <link href="{{ FEED_ALL_RSS }}" rel="alternate" title="{{ SITENAME }}" type="application/rss+xml"> + {% endif %} + </head> <body> @@ -70,10 +84,22 @@ <li><a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Archives</a> <li><a href="{{ SITEURL }}/tags.html">Tags</a> + + + + {% if FEED_ALL_ATOM %} + <li><a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" rel="alternate">Atom feed</a></li> + {% endif %} + {% if FEED_ATOM %} <li><a href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" rel="alternate">Atom feed</a></li> + {% endif %} {% if FEED_RSS %} <li><a href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" rel="alternate">RSS feed</a></li> {% endif %} + {% if FEED_ALL_RSS %} + <li><a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" rel="alternate">RSS feed</a></li> + {% endif %} + </ul> </div> |