sidebar code modification

master
nq4t 2 years ago
parent 2a6259a87e
commit e9149c8121

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

Loading…
Cancel
Save