summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_includes/header.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/_includes/header.html b/_includes/header.html
index bddeee4..dd6294d 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -14,15 +14,18 @@
</label>
<div class="trigger">
- {#
+ {% comment %}
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 #}
+ {% endcomment %}
+
+ {% for my_page in site.pages %}
+
{% 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 %}