diff options
author | Alexis Metaireau <alexis@notmyidea.org> | 2014-09-25 00:40:23 +0200 |
---|---|---|
committer | Alexis Metaireau <alexis@notmyidea.org> | 2014-09-25 00:40:23 +0200 |
commit | 34e975a6400f380157a1c4f2a6136fc778fe1879 (patch) | |
tree | 6609c3ec37f9746bd27f52e5bb93729c2871eeaa /tuxlite_zf | |
parent | b879f580f1fed6091edb882c399ee0810fb8e438 (diff) | |
parent | 8ef32802eef326da10838348a80c38c6bf465aad (diff) | |
download | pelican-themes-34e975a6400f380157a1c4f2a6136fc778fe1879.zip pelican-themes-34e975a6400f380157a1c4f2a6136fc778fe1879.tar.gz pelican-themes-34e975a6400f380157a1c4f2a6136fc778fe1879.tar.bz2 |
Merge pull request #150 from tverrbjelke/master
Theme become compatible with Pelican documentation, enable firefox to dynamic-bookmark the feeds by adding meta data.
Diffstat (limited to 'tuxlite_zf')
-rw-r--r-- | tuxlite_zf/templates/base.html | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/tuxlite_zf/templates/base.html b/tuxlite_zf/templates/base.html index 779c56d..836ecea 100644 --- a/tuxlite_zf/templates/base.html +++ b/tuxlite_zf/templates/base.html @@ -11,6 +11,21 @@ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css" />
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css" />
<script src="{{ SITEURL }}/theme/js/custom.modernizr.js"></script>
+
+ <!-- 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>
@@ -60,12 +75,20 @@ <ul class="side-nav">
<li><a href="{{ SITEURL }}/archives.html">Archives</a>
<li><a href="{{ SITEURL }}/tags.html">Tags</a>
- {% if FEED_RSS %}
- <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_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>
{% if categories %}
|