From f5777d26023c6c43dc82439e7283d8df89510a65 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Sat, 27 Apr 2019 21:51:50 +0200 Subject: [PATCH] added HIDE_CATEGORIES configuration flags --- alchemy/templates/article.html | 2 ++ alchemy/templates/include/footer.html | 4 +++- alchemy/templates/index.html | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index 9fa242e..a06121b 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -21,10 +21,12 @@ {{ article.locale_date }} + {% if not HIDE_CATEGORIES %}
  • {{ article.category }}
  • + {% endif %} {% if not HIDE_AUTHORS and article.authors %}
  • diff --git a/alchemy/templates/include/footer.html b/alchemy/templates/include/footer.html index 8a2bd12..8f1bd63 100644 --- a/alchemy/templates/include/footer.html +++ b/alchemy/templates/include/footer.html @@ -4,7 +4,9 @@
  • Authors
  • {% endif %}
  • Archives
  • -
  • Categories
  • + {% if not HIDE_CATEGORIES %} +
  • Categories
  • + {% endif %} {% if tags|length %}
  • Tags
  • {% endif %} diff --git a/alchemy/templates/index.html b/alchemy/templates/index.html index f9c6a46..38c5095 100644 --- a/alchemy/templates/index.html +++ b/alchemy/templates/index.html @@ -24,10 +24,12 @@ {{ article.locale_date }} + {% if not HIDE_CATEGORIES %}
  • {{ article.category }}
  • + {% endif %} {% if not HIDE_AUTHORS and article.authors %}