mirror of
https://github.com/metagov/govarch-website.git
synced 2025-04-25 02:48:00 +00:00
22 lines
579 B
HTML
22 lines
579 B
HTML
{% assign menu = site.data.menu %}
|
|
|
|
{% if menu %}
|
|
<nav class="site-navigation" role="navigation">
|
|
<ul>
|
|
{% for item in site.data.menu %}
|
|
<li {% if page.url == item.url %}class="active"{% endif %}>
|
|
{% if item.url contains 'http' %}
|
|
<a href="{{ item.url }}" target=_"blank" rel="noopener noreferrer">
|
|
{{ item.title }}
|
|
</a>
|
|
{% else %}
|
|
<a href="{{ item.url | prepend: site.baseurl }}">
|
|
{{ item.title }}
|
|
</a>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
{% endif %}
|