From 4a9d2e86cf761e0931a3a32f75b7351cf93d153f Mon Sep 17 00:00:00 2001 From: tBunnyMan Date: Mon, 16 Jul 2012 14:52:19 -0700 Subject: [PATCH] Moved all rss headers from FAQ into base --- docs/faq.rst | 23 ++--------------------- pelican/themes/simple/templates/base.html | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/docs/faq.rst b/docs/faq.rst index c6bf209b..d5a2c81b 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -91,24 +91,5 @@ like the RRS feed options. Here is an exact list of the changes:: CATEGORY_FEED -> CATEGORY_FEED_ATOM Older 2.x themes that referenced these may not link properly. Please update -your themes for 3 on. Here is some example code you can use for the header - -.. code-block:: html+jinja - {% if FEED_ATOM %} - - {% endif %} - {% if FEED_RSS %} - - {% endif %} - {% if CATEGORY_FEED_ATOM %} - - {% endif %} - {% if CATEGORY_FEED_RSS %} - - {% endif %} - {% if TAG_FEED_ATOM %} - - {% endif %} - {% if TAG_FEED_RSS %} - - {% endif %} +your themes for 3 on. For an example of complete RSS headers and usage please +check out the simple theme. diff --git a/pelican/themes/simple/templates/base.html b/pelican/themes/simple/templates/base.html index ad2723fd..61375e8a 100644 --- a/pelican/themes/simple/templates/base.html +++ b/pelican/themes/simple/templates/base.html @@ -4,6 +4,24 @@ {% block head %} {% block title %}{{ SITENAME }}{% endblock title %} + {% if FEED_ATOM %} + + {% endif %} + {% if FEED_RSS %} + + {% endif %} + {% if CATEGORY_FEED_ATOM %} + + {% endif %} + {% if CATEGORY_FEED_RSS %} + + {% endif %} + {% if TAG_FEED_ATOM %} + + {% endif %} + {% if TAG_FEED_RSS %} + + {% endif %} {% endblock head %}