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
@@ -23,8 +23,13 @@
<div class='sun'></div>
<div class='title'><h1><a href="/">{{ SITENAME }}</a></h1></div>
<ul class="nav">
{% if self.is_dm() %}
<li><a href="{{ SITEURL }}/dm">DM</a></li>
{% endif %}
{% for category, articles in categories %}
{% if category != 'dm' %}
<li><a href="{{ SITEURL }}/{{ category.name }}">{{ category }}</a></li>
{% endif %}
{% endfor %}
{% for p in pages %}
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>