mirror of
https://github.com/metagov/govarch-website.git
synced 2025-06-19 01:23:10 +00:00
improve navigation
This commit is contained in:
@ -1,6 +1,3 @@
|
|||||||
- title: Home
|
|
||||||
url: /
|
|
||||||
|
|
||||||
- title: About
|
- title: About
|
||||||
url: /about.html
|
url: /about.html
|
||||||
|
|
||||||
|
@ -3,8 +3,13 @@
|
|||||||
{% if menu %}
|
{% if menu %}
|
||||||
<nav class="site-navigation">
|
<nav class="site-navigation">
|
||||||
<ul>
|
<ul>
|
||||||
{% for item in site.data.menu %}
|
|
||||||
<li>
|
<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' %}
|
{% if item.url contains 'http' %}
|
||||||
<a href="{{ item.url }}">
|
<a href="{{ item.url }}">
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
|
@ -2,7 +2,11 @@
|
|||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include back-link.html %}
|
{% if site.data.menu %}
|
||||||
|
{% include menu.html %}
|
||||||
|
{% else %}
|
||||||
|
{% include back-link.html %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
||||||
|
|
||||||
|
@ -14,6 +14,9 @@
|
|||||||
font-size: .875em;
|
font-size: .875em;
|
||||||
font-variant: small-caps;
|
font-variant: small-caps;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
&.active a {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-navigation a {
|
.site-navigation a {
|
||||||
|
Reference in New Issue
Block a user