From 95bf450b8b01c471568ddb661298490d879c81ce Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Mon, 10 Sep 2018 10:53:58 +0100 Subject: [PATCH 1/2] 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 From fb76bb593fcd053989a4f2f8a272dad3ab8c2fce Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Wed, 12 Sep 2018 00:42:10 +0300 Subject: [PATCH 2/2] Update article.html --- alchemy/templates/article.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index 2ba0675..a55c203 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -16,7 +16,7 @@ {% block content %}

    - {% if not HIDE_BANNER %} + {% if not HIDE_BANNER %}