Skip to content
Snippets Groups Projects
Verified Commit 0a6aa512 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add category class to subpage menu items.

parent ee401f63
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@
<ul>
{% for p in group.list %}
{% if p.url %}
<li class="{{ p.category }}{% if p == page %} current{% endif %}">
<li class="{{ p.category }}{% if page and p.category == page.category %} current{% endif %}">
<a href="{{ SITEURL }}/{{ p.url }}">{{ p.menulabel|default(p.title) }}</a>
</li>
{% endif %}
......@@ -63,7 +63,7 @@
{% endfor %}
</ul>
</div>
<div id="page" {% if page %}class="{{ page.slug }}"{% endif %}>
<div id="page" {% if page %}class="{{ page.category }}"{% endif %}>
{% block content %}{% endblock %}
</div>
<div id="footer">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment