From 8dd0c8458cae51c1e59127dced649fa9aff0e7b0 Mon Sep 17 00:00:00 2001 From: evilchili Date: Sun, 7 Aug 2022 12:14:53 -0700 Subject: [PATCH] hide DM category except on localhost --- deadsands/deadsands-theme/templates/article.html | 3 +++ deadsands/deadsands-theme/templates/base.html | 5 +++++ deadsands/deadsands-theme/templates/index.html | 3 +++ deadsands/pelicanconf.py | 3 --- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/deadsands/deadsands-theme/templates/article.html b/deadsands/deadsands-theme/templates/article.html index 3409d8f..003a1b4 100644 --- a/deadsands/deadsands-theme/templates/article.html +++ b/deadsands/deadsands-theme/templates/article.html @@ -3,6 +3,8 @@ {% block title %}{{ article.title|capitalize }} - {{SITENAME}}{% endblock title %} {% block key_image %}{{ macros.key_image(article) }}{% endblock key_image %} {% block content %} +{% if not self.is_dm() and article.category == 'dm' %} +{% else %}

{{ article.title }}

@@ -18,4 +20,5 @@ {% include "bottom-nav.html" %}
+{% endif %} {% endblock content %} diff --git a/deadsands/deadsands-theme/templates/base.html b/deadsands/deadsands-theme/templates/base.html index 1d42e27..c8e60e0 100644 --- a/deadsands/deadsands-theme/templates/base.html +++ b/deadsands/deadsands-theme/templates/base.html @@ -23,8 +23,13 @@

{{ SITENAME }}