summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authoruvok cheetah2020-01-08 23:20:35 +0100
committeruvok cheetah2020-01-08 23:20:35 +0100
commit633ea5dbad65d9398250b0fbcf107b4c71374896 (patch)
treebe1fc4bf0b968c8637781587df7defd594a8178b /_includes
parentc4a73104d19eee2a0dd4b1718c415de789b1edec (diff)
fix comment.liquid
Diffstat (limited to '_includes')
-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 %}