From b9bc0810dd5529d4cb835c89816770cc4c459a0e Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Sat, 21 Jun 2014 14:05:45 +0300 Subject: [PATCH] Add PAGES_ON_MENU option --- README.md | 1 + alchemy/templates/include/header.html | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index cbd36c2..b3a786c 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Pelican [documentation](http://docs.getpelican.com/en/latest/) | LICENSE_NAME | TEXT | License (footer) | | LICENSE_URL | URL | - | | MENU_ITEMS | DICT | Menu items | +| PAGES_ON_MENU | BOOL | Pages on the menu | | PROFILE_IMAGE | URL | Profile image | | SHOW_ARTICLE_AUTHOR | BOOL | Show/hide author | | SITE_SUBTEXT | TEXT | Header subtitle | diff --git a/alchemy/templates/include/header.html b/alchemy/templates/include/header.html index 615b0ea..3f21f53 100644 --- a/alchemy/templates/include/header.html +++ b/alchemy/templates/include/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 %}