hide DM category except on localhost

This commit is contained in:
evilchili
2022-08-07 12:14:53 -07:00
parent 5edf5f2283
commit 8dd0c8458c
4 changed files with 11 additions and 3 deletions
@@ -2,6 +2,8 @@
{% block title %}{{ category if category else tag if tag else "" |capitalize }} - {{SITENAME}}{% endblock title %}
{% block navclass %}active{%endblock%}
{% block content %}
{% if not self.is_dm() and category == 'dm' %}
{% else %}
<section id="content" class="content">
{% if category %}
{% with key='category', values=[category], title=category %}{% include "category-index.html" %}{% endwith %}
@@ -9,5 +11,6 @@
{% include "tag-index.html" %}
{% endif %}
</section>
{% endif %}
{% endblock content %}