sitolost/pelican-themes/pelican-bootstrap3bis/templates/includes/sidebar/categories.html

22 lines
619 B
HTML
Raw Permalink Normal View History

2019-10-23 14:37:16 +02:00
{% if DISPLAY_CATEGORIES_ON_SIDEBAR %}
{% from 'includes/sidebar/macros.jinja' import title %}
<!-- Sidebar/Categories -->
<li class="list-group-item">
<h4>{{ title(_('Categories'), DISABLE_SIDEBAR_TITLE_ICONS) }}</h4>
<ul class="list-group" id="categories">
{% for cat, null in categories %}
<li class="list-group-item">
<a href="{{ SITEURL }}/{{ cat.url }}">
{%- if not DISABLE_SIDEBAR_TITLE_ICONS -%}
<i class="fa fa-folder-open fa-lg"></i>
{%- endif -%}
{{- cat -}}
</a>
</li>
{% endfor %}
</ul>
</li>
<!-- End Sidebar/Categories -->
{% endif %}