summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2020-01-08 23:15:00 +0100
committeruvok cheetah2020-01-08 23:15:00 +0100
commitc4a73104d19eee2a0dd4b1718c415de789b1edec (patch)
tree2930cfc9b6b43747a2348daec7d88ee97fd69232
parentf4de8c6665c4811c8a9b5558c6f552c3f930994e (diff)
add flag to determine whether to include page in navbar
-rw-r--r--_includes/header.html7
-rw-r--r--contact.html1
-rw-r--r--poem.md1
3 files changed, 6 insertions, 3 deletions
diff --git a/_includes/header.html b/_includes/header.html
index b3489c2..bddeee4 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -14,14 +14,15 @@
</label>
<div class="trigger">
- <!--
+ {#
my_page.autogen is populated by the pagination logic for all pages
that are automatically created by the gem. Check for non-existence to exclude pagination pages from site.pages iterators
- -->
+ #}
- <!-- add exclusion of /index to avoid having the link twice -->
+ {# add exclusion of /index to avoid having the link twice #}
{% for my_page in site.pages %}
+{# check for in_navbar: true #}
{% if my_page.title and my_page.autogen == nil and my_page.url != "/index.html" %}
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{% endif %}
diff --git a/contact.html b/contact.html
index 82e2387..2acc24a 100644
--- a/contact.html
+++ b/contact.html
@@ -1,6 +1,7 @@
---
layout: page
title: Kontakt
+in_navbar: true
---
<p>
diff --git a/poem.md b/poem.md
index d373a18..bba58ab 100644
--- a/poem.md
+++ b/poem.md
@@ -1,6 +1,7 @@
---
layout: page
title: Gedicht
+in_navbar: true
---
> Uvok my name