Commit 859e6ada authored by Marcus M. Scheunemann's avatar Marcus M. Scheunemann

show pages in collapsed sidebar

parent 76872b50
......@@ -117,7 +117,24 @@
</li>
</ul></li>
{% endif %}
<li class="nav-divider"></li>
{% if DISPLAY_PAGES_ON_MENU %}
<li class="nav-divider"></li>
<li>
<a data-toggle="collapse" data-parent="#accordion-small" href="#collapse-pages-small" title="Pages" class="collapsed">
<i class="fas fa-folder-open padding-small"></i>
</a>
</li>
<li class="panel anti-panel"><ul id="collapse-pages-small" class="collapse {% block collapse_pages_small %}{% endblock %}">
{% for p in pages %}
<li{% if p == page %} class="active"{% endif %}>
<a href="{{ SITEURL }}/{{ p.url }}" title=" {{ p.menulabel|default(p.title) }}">
<i class="fas fa-{{ p.menuicon|default('file.alt') }} padding-small"></i>
</a>
</li>
{% endfor %}
</ul></li>
{% endif %}
<li class="nav-divider"></li>
{{ nav_small_li(SITEURL + '/' + ARCHIVES_URL | default('archives.html'), 'Recent Articles', '<span class="fas fa-th-list"></span>') }}
{% if SOCIAL %}
<li class="nav-divider"></li>
......@@ -184,12 +201,11 @@
{% endif %}
<li>
<a href="{{ link }}">
<i class="fas fa-{{ icon }} padding-small"></i>
<i class="fas fa-{{ icon }} padding-small"></i>
{{ title }}
</a>
</li>
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU %}
<li class="nav-divider"></li>
<li>
......@@ -209,7 +225,7 @@
{% endfor %}
</ul></li>
{% endif %}
{% if DISPLAY_RECENT_POSTS_ON_MENU %}
{% if DISPLAY_RECENT_POSTS_ON_MENU %}
<li class="nav-divider"></li>
<li>
<a data-toggle="collapse" data-parent="#accordion" href="#collapse-latest">
......@@ -284,7 +300,7 @@
{% endfor %}
</ul></li>
{% endif %}
{% if SOCIAL %}
{% if SOCIAL %}
<li class="nav-divider"></li>
<li>
<a data-toggle="collapse" data-parent="#accordion" href="#collapse-social">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment