hippie/source/templates/demo/macros/_nav.njk
Stephan Hagedorn cd870b1bfe NOTE test commit from wsl
Discrepancy from atom git status
2019-03-21 20:39:53 +01:00

10 lines
324 B
Text

<!-- nav.main.macro -->
{% macro main(data, active='') %}
<nav>
<ul>
{% for link in data %}
<li{%if active == link.text %} class="active_txt"{% endif %}>{%if active == link.text %}{{ link.text }}{%else%}<a href="{{ link.href }}">{{ link.text }}</a>{% endif %}</li>
{% endfor %}
</ul>
</nav>
{% endmacro %}