diff options
Diffstat (limited to 'uikit/templates/menu_macros.html')
-rw-r--r-- | uikit/templates/menu_macros.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/uikit/templates/menu_macros.html b/uikit/templates/menu_macros.html new file mode 100644 index 0000000..bac503b --- /dev/null +++ b/uikit/templates/menu_macros.html @@ -0,0 +1,13 @@ +{% for title, link in MENUITEMS %} + <li><a href="{{ link }}">{{ title }}</a></li> +{% endfor %} +{% if DISPLAY_PAGES_ON_MENU %} + {% for p in PAGES %} + <li{% if p == page %} class="uk-active"{% endif %}><a href="/{{ p.url }}">{{ p.title }}</a></li> + {% endfor %} + {% if DISPLAY_CATEGORIES_ON_MENU %} + {% for cat, null in categories %} + <li{% if cat == category %} class="uk-active"{% endif %}><a href="/{{ cat.url }}">{{ cat }}</a></li> + {% endfor %} + {% endif %} +{% endif %} |