From 8e1e53af3184a1028bde2f6102c7c1bc9fb21321 Mon Sep 17 00:00:00 2001 From: lynix Date: Fri, 10 Apr 2015 21:21:20 +0200 Subject: [PATCH 1/2] 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 %} From 9242ff3cb79135497403d1327be9badc6d834df9 Mon Sep 17 00:00:00 2001 From: lynix Date: Fri, 10 Apr 2015 21:30:59 +0200 Subject: [PATCH 2/2] show tags in article view --- alchemy/templates/article.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index 375cab9..ab5d9ec 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -28,6 +28,14 @@ + {% if article.tags %} +
  • ·
  • +
  • + {% for tag in article.tags %} + {{ tag }}{% if not loop.last %}, {% endif %} + {% endfor %} +
  • + {% endif %} {% if article.author and SHOW_ARTICLE_AUTHOR %}
  • ·