comicsite/_includes/topnav.html
2024-07-29 18:53:30 -05:00

12 lines
275 B
HTML

<nav>
{% for item in site.data.navigation %}
<a href="{{ item.link }}" {% if page.url == item.link %}class=current{% endif %}>
{% if item.img %}
<img src={{ item.img }} alt={{ item.name }}>
{% else %}
{{ item.name }}
{% endif %}
</a><br>
{% endfor %}
</nav>