diff options
-rw-r--r-- | blog/_includes/menubar.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/blog/_includes/menubar.html b/blog/_includes/menubar.html index 4d7237f..83768de 100644 --- a/blog/_includes/menubar.html +++ b/blog/_includes/menubar.html @@ -1,8 +1,9 @@ <div id="page-menu"> <nav class="site-nav"> <a class="page-link" href="{{ site.baseurl | append: "/" }}">Hjem</a> - <a class="page-link" href="{{ site.baseurl_root | append: "/registration" }}">Registrering</a> - {% for page in site.pages %} + <a class="page-link" href="{{ site.baseurl | append: "/registration" }}">Registrering</a> + {% assign pages_in_lang = site.pages | where_exp: "p","p.lang == page.lang" %} + {% for page in pages_in_lang %} {% if page.title and (!page.hidden == true) %} <a class="page-link" href="{{ page.url | prepend: site.baseurl | remove: 'index.html' }}">{{ page.title }}</a> {% endif %} |