diff options
Diffstat (limited to 'pelican-bootstrap3/templates/includes/sidebar/categories.html')
-rw-r--r-- | pelican-bootstrap3/templates/includes/sidebar/categories.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/sidebar/categories.html b/pelican-bootstrap3/templates/includes/sidebar/categories.html new file mode 100644 index 0000000..01fb5b4 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/sidebar/categories.html @@ -0,0 +1,21 @@ +{% 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 %} |