Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
tverrbjelke committed Sep 26, 2013
1 parent f65823b commit 2d81aec
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tuxlite_tbs/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>

Expand Down

0 comments on commit 2d81aec

Please sign in to comment.