aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/sidebar/macros.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'pelican-bootstrap3/templates/includes/sidebar/macros.jinja')
-rw-r--r--pelican-bootstrap3/templates/includes/sidebar/macros.jinja7
1 files changed, 7 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/sidebar/macros.jinja b/pelican-bootstrap3/templates/includes/sidebar/macros.jinja
new file mode 100644
index 0000000..b830923
--- /dev/null
+++ b/pelican-bootstrap3/templates/includes/sidebar/macros.jinja
@@ -0,0 +1,7 @@
+{% 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 %}