pelican-theme-bootstrap4/templates/includes/sidebar/macros.jinja
2019-04-19 21:30:55 +03: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 %}