mirror of
https://github.com/metagov/govarch-website.git
synced 2025-06-22 02:11:06 +00:00
Create basic template for site with working menu
This commit is contained in:
@ -3,15 +3,10 @@
|
||||
{% if menu %}
|
||||
<nav class="site-navigation" role="navigation">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ '/' | prepend: site.baseurl }}">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
{% for item in site.data.menu %}
|
||||
<li {% if page.url == item.url %}class="active"{% endif %}>
|
||||
{% if item.url contains 'http' %}
|
||||
<a href="{{ item.url }}">
|
||||
<a href="{{ item.url }}" target=_"blank" rel="noopener noreferrer">
|
||||
{{ item.title }}
|
||||
</a>
|
||||
{% else %}
|
||||
@ -23,4 +18,4 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user