From 0a3217430379cd6d13c58ebd123434035411e4db Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Tue, 17 Jun 2014 21:22:03 +0300 Subject: [PATCH] Add pages on the menu option --- README.md | 1 + alchemy/templates/header.html | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 3e7e625..616e9ea 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ Pelican [documentation](http://docs.getpelican.com/en/latest/) | PROFILE_IMAGE | URL | Profile image | | SITE_SUBTEXT | TEXT | Header subtitle | | MENU_ITEMS | DICT | Menu items | +| PAGES_ON_MENU | BOOL | Pages on the menu | | SHOW_ARTICLE_AUTHOR | BOOL | Show/hide author | | LICENSE_URL | URL | Footer action | | LICENSE_NAME | TEXT | Hot footer action | diff --git a/alchemy/templates/header.html b/alchemy/templates/header.html index 5cd127b..8a9c1d6 100644 --- a/alchemy/templates/header.html +++ b/alchemy/templates/header.html @@ -14,6 +14,17 @@ {% for title, link in MENU_ITEMS %}
  • {{ title }}
  • {% endfor %} + {% if PAGES_ON_MENU %} + {% for p in PAGES %} + {% if loop.first %} +
  • ·
  • + {% endif %} +
  • {{ p.title }}
  • + {% if loop.last %} +
  • ·
  • + {% endif %} + {% endfor %} + {% endif %} {% if EMAIL_ADDRESS %}
  • {% endif %}