From 4aee394acbc8d6b5cf4dcab758998a49a39d7137 Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Tue, 21 Nov 2017 11:15:58 +0300 Subject: [PATCH] Move header, footer, xml_feeds to include; reason base.html --- alchemy/templates/base.html | 79 +----------------------- alchemy/templates/include/footer.html | 16 +++++ alchemy/templates/include/header.html | 36 +++++++++++ alchemy/templates/include/xml_feeds.html | 26 ++++++++ 4 files changed, 81 insertions(+), 76 deletions(-) create mode 100644 alchemy/templates/include/footer.html create mode 100644 alchemy/templates/include/header.html create mode 100644 alchemy/templates/include/xml_feeds.html diff --git a/alchemy/templates/base.html b/alchemy/templates/base.html index c636e07..978d079 100644 --- a/alchemy/templates/base.html +++ b/alchemy/templates/base.html @@ -10,31 +10,6 @@ {% block title %}| {{ SITENAME }}{% endblock %} - {% if FEED_ALL_ATOM %} - - {% endif %} - {% if FEED_ALL_RSS %} - - {% endif %} - {% if FEED_ATOM %} - - {% endif %} - {% if FEED_RSS %} - - {% endif %} - {% if CATEGORY_FEED_ATOM and category %} - - {% endif %} - {% if CATEGORY_FEED_RSS and category %} - - {% endif %} - {% if TAG_FEED_ATOM and tag %} - - {% endif %} - {% if TAG_FEED_RSS and tag %} - - {% endif %} - {% if RFG_FAVICONS %} @@ -48,6 +23,7 @@ + {% include 'include/xml_feeds.html' %} {% block head %}{% endblock %} {% include 'include/analytics.html' %} @@ -55,42 +31,7 @@
-
- {% if SITEIMAGE %} -
- - {{ SITENAME }} - -
- {% endif %} -
-

{{ SITENAME }}

- {% if SITESUBTITLE %} -

{{ SITESUBTITLE }}

- {% endif %} - {% if LINKS or (DISPLAY_PAGES_ON_MENU and pages) or ICONS %} -
    - {% for title, link in LINKS %} -
  • {{ title }}
  • - {% endfor %} - {% if DISPLAY_PAGES_ON_MENU %} - {% for page in pages %} - {% if LINKS and loop.first %} -
  • |
  • - {% endif %} -
  • {{ page.title }}
  • - {% endfor %} - {% endif %} - {% for icon, link in ICONS %} - {% if (LINKS or (DISPLAY_PAGES_ON_MENU and pages)) and loop.first %} -
  • |
  • - {% endif %} -
  • - {% endfor %} -
- {% endif %} -
-
+ {% include 'include/header.html' %}
@@ -104,21 +45,7 @@ diff --git a/alchemy/templates/include/footer.html b/alchemy/templates/include/footer.html new file mode 100644 index 0000000..8a2bd12 --- /dev/null +++ b/alchemy/templates/include/footer.html @@ -0,0 +1,16 @@ +
+ +

+ Generated by Pelican + / +

+
diff --git a/alchemy/templates/include/header.html b/alchemy/templates/include/header.html new file mode 100644 index 0000000..6f43170 --- /dev/null +++ b/alchemy/templates/include/header.html @@ -0,0 +1,36 @@ +
+ {% if SITEIMAGE %} +
+ + {{ SITENAME }} + +
+ {% endif %} +
+

{{ SITENAME }}

+ {% if SITESUBTITLE %} +

{{ SITESUBTITLE }}

+ {% endif %} + {% if LINKS or (DISPLAY_PAGES_ON_MENU and pages) or ICONS %} +
    + {% for title, link in LINKS %} +
  • {{ title }}
  • + {% endfor %} + {% if DISPLAY_PAGES_ON_MENU %} + {% for page in pages %} + {% if LINKS and loop.first %} +
  • |
  • + {% endif %} +
  • {{ page.title }}
  • + {% endfor %} + {% endif %} + {% for icon, link in ICONS %} + {% if (LINKS or (DISPLAY_PAGES_ON_MENU and pages)) and loop.first %} +
  • |
  • + {% endif %} +
  • + {% endfor %} +
+ {% endif %} +
+
diff --git a/alchemy/templates/include/xml_feeds.html b/alchemy/templates/include/xml_feeds.html new file mode 100644 index 0000000..df909d7 --- /dev/null +++ b/alchemy/templates/include/xml_feeds.html @@ -0,0 +1,26 @@ +{% if FEED_ALL_ATOM %} + +{% endif %} +{% if FEED_ALL_RSS %} + {% endif %} +{% if FEED_ATOM %} + {% endif %} +{% if FEED_RSS %} + {% endif %} +{% if CATEGORY_FEED_ATOM and category %} + {% endif %} +{% if CATEGORY_FEED_RSS and category %} + {% endif %} +{% if TAG_FEED_ATOM and tag %} + {% endif %} +{% if TAG_FEED_RSS and tag %} + +{% endif %}