pelican-theme-bootstrap4/templates/includes/sidebar/categories.html

22 lines
619 B
HTML
Raw Normal View History

2019-04-19 18:30:55 +00: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 %}