sidebar code modification

master
nq4t 2 years ago
parent 2a6259a87e
commit e9149c8121

@ -25,7 +25,11 @@
{% for node in pages_list %}
{% if node.sidebar != null %}
{% if node.layout == "page" or node.layout == "page2" %}
{% if node.permalink != null}
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ node.permalink }}">{{ node.title }}</a>
{% else %}
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ node.url }}">{{ node.title }}</a>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}

Loading…
Cancel
Save