diff options
author | uvok cheetah | 2020-01-08 23:20:35 +0100 |
---|---|---|
committer | uvok cheetah | 2020-01-08 23:20:35 +0100 |
commit | 633ea5dbad65d9398250b0fbcf107b4c71374896 (patch) | |
tree | be1fc4bf0b968c8637781587df7defd594a8178b /_includes/header.html | |
parent | c4a73104d19eee2a0dd4b1718c415de789b1edec (diff) |
fix comment.liquid
Diffstat (limited to '_includes/header.html')
-rw-r--r-- | _includes/header.html | 11 |
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 %} |