hide DM category except on localhost
This commit is contained in:
parent
5edf5f2283
commit
8dd0c8458c
|
@ -3,6 +3,8 @@
|
||||||
{% block title %}{{ article.title|capitalize }} - {{SITENAME}}{% endblock title %}
|
{% block title %}{{ article.title|capitalize }} - {{SITENAME}}{% endblock title %}
|
||||||
{% block key_image %}{{ macros.key_image(article) }}{% endblock key_image %}
|
{% block key_image %}{{ macros.key_image(article) }}{% endblock key_image %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
{% if not self.is_dm() and article.category == 'dm' %}
|
||||||
|
{% else %}
|
||||||
<section id="content">
|
<section id="content">
|
||||||
<div class='box curled'>
|
<div class='box curled'>
|
||||||
<h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
|
<h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
|
||||||
|
@ -18,4 +20,5 @@
|
||||||
{% include "bottom-nav.html" %}
|
{% include "bottom-nav.html" %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
@ -23,8 +23,13 @@
|
||||||
<div class='sun'></div>
|
<div class='sun'></div>
|
||||||
<div class='title'><h1><a href="/">{{ SITENAME }}</a></h1></div>
|
<div class='title'><h1><a href="/">{{ SITENAME }}</a></h1></div>
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
|
{% if self.is_dm() %}
|
||||||
|
<li><a href="{{ SITEURL }}/dm">DM</a></li>
|
||||||
|
{% endif %}
|
||||||
{% for category, articles in categories %}
|
{% for category, articles in categories %}
|
||||||
|
{% if category != 'dm' %}
|
||||||
<li><a href="{{ SITEURL }}/{{ category.name }}">{{ category }}</a></li>
|
<li><a href="{{ SITEURL }}/{{ category.name }}">{{ category }}</a></li>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for p in pages %}
|
{% for p in pages %}
|
||||||
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
|
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
{% block title %}{{ category if category else tag if tag else "" |capitalize }} - {{SITENAME}}{% endblock title %}
|
{% block title %}{{ category if category else tag if tag else "" |capitalize }} - {{SITENAME}}{% endblock title %}
|
||||||
{% block navclass %}active{%endblock%}
|
{% block navclass %}active{%endblock%}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
{% if not self.is_dm() and category == 'dm' %}
|
||||||
|
{% else %}
|
||||||
<section id="content" class="content">
|
<section id="content" class="content">
|
||||||
{% if category %}
|
{% if category %}
|
||||||
{% with key='category', values=[category], title=category %}{% include "category-index.html" %}{% endwith %}
|
{% with key='category', values=[category], title=category %}{% include "category-index.html" %}{% endwith %}
|
||||||
|
@ -9,5 +11,6 @@
|
||||||
{% include "tag-index.html" %}
|
{% include "tag-index.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,6 @@ THEME = 'deadsands-theme'
|
||||||
|
|
||||||
SLUGIFY_SOURCE = 'basename'
|
SLUGIFY_SOURCE = 'basename'
|
||||||
|
|
||||||
DISPLAY_PAGES_ON_MENU = True
|
|
||||||
|
|
||||||
PATH = 'content'
|
PATH = 'content'
|
||||||
|
|
||||||
TIMEZONE = 'America/Los_Angeles'
|
TIMEZONE = 'America/Los_Angeles'
|
||||||
|
@ -56,7 +54,6 @@ MENU_ITEMS = (
|
||||||
("Index", "archives/"),
|
("Index", "archives/"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
SITEMAP = {
|
SITEMAP = {
|
||||||
'format': 'xml',
|
'format': 'xml',
|
||||||
"exclude": ["tag/"],
|
"exclude": ["tag/"],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user