From 95bf450b8b01c471568ddb661298490d879c81ce Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Mon, 10 Sep 2018 10:53:58 +0100 Subject: [PATCH] Allow hiding of additional items HIDE_AUTHORS is already supported, extend to support hiding archives, categories and the complete article header banner line. Signed-off-by: Neil Williams --- alchemy/templates/article.html | 2 ++ alchemy/templates/include/footer.html | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index 43b221d..2ba0675 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -16,6 +16,7 @@ {% block content %}
+ {% if not HIDE_BANNER %}
  • @@ -42,6 +43,7 @@
  • {% endif %}
+ {% endif %}
{{ article.content }} diff --git a/alchemy/templates/include/footer.html b/alchemy/templates/include/footer.html index 8a2bd12..987374a 100644 --- a/alchemy/templates/include/footer.html +++ b/alchemy/templates/include/footer.html @@ -3,11 +3,15 @@ {% if not HIDE_AUTHORS %}
  • Authors
  • {% endif %} + {% if not HIDE_ARCHIVES %}
  • Archives
  • + {% endif %} + {% if not HIDE_CATEGORIES %}
  • Categories
  • {% if tags|length %}
  • Tags
  • {% endif %} + {% endif %}

    Generated by Pelican