hippie/source/templates/demo/macros/nav-macro.njk
Stephan 92d1609213 Next content push
- changed .gitignore for art folder
- add gulp processing for art
- changed nunjucks templates file structure to reflect demo files
- removed file for new styles
- renamed most sass variables
- added sass function for space classes
- great progress with content of the intro page
- moved old gulp tasks to DEPRECATED.md
2018-10-09 23:47:51 +02:00

18 lines
895 B
Text

{% set item = [['one', 'filename'], ['two', 'filename']] %}
{% macro active(activePage='') %}<!-- nav.macro -->
<nav class="nav_site">
<span id="js_nav_tog" class="nav_site_toggle"><img src="./art/more.svg" width="22" height="22"/></span>
<ul class="nav_site_main">
{% for a, b in item -%}
<li{%if activePage == a %} class="active_txt"{% endif %}>{%if activePage == a %}{{ a }}{%else%}<a href="{{ b }}.html">{{ a }}</a>{% endif %}</li>
{% endfor -%}
</ul>
<ul class="nav_site_add">
<li><a href="dummy.html"><img src="./art/search.svg" width="22" height="22"/></a></li>
<li><img src="./art/cart.svg" width="22" height="22"/></li>
</ul>
</nav>
{%- endmacro %}
{% macro top() %}<!-- top.macro -->
<div id="js_top" class="overlay_btn hidden"><span class="span_solo"><img src="./art/top.svg" width="44" height="44"/></span></div>
{%- endmacro %}