summaryrefslogtreecommitdiff
path: root/_includes/header.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/header.html')
-rw-r--r--_includes/header.html7
1 files changed, 4 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 %}