sitolost/pelican-themes/pelican-bootstrap3bis/templates/includes/sidebar/macros.jinja
2019-10-23 14:37:16 +02:00

8 lines
215 B
Django/Jinja

{% macro title(name, no_icon, icon='home') -%}
{%- if no_icon -%}
{{ name }}
{%- else -%}
<i class="fa fa-{{ icon }} fa-lg"></i><span class="icon-label">{{ name }}</span>
{%- endif -%}
{%- endmacro %}