From 8e1e53af3184a1028bde2f6102c7c1bc9fb21321 Mon Sep 17 00:00:00 2001 From: lynix Date: Fri, 10 Apr 2015 21:21:20 +0200 Subject: [PATCH] introduce options for category, tag and archives links on menu --- README.md | 3 +++ alchemy/templates/include/header.html | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index d41af04..20f4043 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,9 @@ Pelican [documentation](http://docs.getpelican.com/en/latest/) | MENU_ITEMS | DICT | Menu items | | META_DESCRIPTION | TEXT | Meta description | | PAGES_ON_MENU | BOOL | Pages on the menu | +| CATEGORIES_ON_MENU | BOOL | Category link in menu | +| TAGS_ON_MENU | BOOL | Tag link in menu | +| ARCHIVES_ON_MENU | BOOL | Archives link in 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 4d9fd22..01e51e5 100644 --- a/alchemy/templates/include/header.html +++ b/alchemy/templates/include/header.html @@ -25,6 +25,18 @@ {% endif %} {% endfor %} {% endif %} + {% if CATEGORIES_ON_MENU %} +
  • Categories
  • +
  • |
  • + {% endif %} + {% if TAGS_ON_MENU %} +
  • Tags
  • +
  • |
  • + {% endif %} + {% if ARCHIVES_ON_MENU %} +
  • Archives
  • +
  • |
  • + {% endif %} {% if EMAIL_ADDRESS %}
  • {% endif %}