diff options
author | uvok cheetah | 2020-01-08 23:15:00 +0100 |
---|---|---|
committer | uvok cheetah | 2020-01-08 23:15:00 +0100 |
commit | c4a73104d19eee2a0dd4b1718c415de789b1edec (patch) | |
tree | 2930cfc9b6b43747a2348daec7d88ee97fd69232 /_includes | |
parent | f4de8c6665c4811c8a9b5558c6f552c3f930994e (diff) |
add flag to determine whether to include page in navbar
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/header.html | 7 |
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 %} |