blob: 93dfbf63064a38c4d3ccea098806731005b9ef45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{% 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
^-- alt: check for content
add exclusion of /index to avoid having the link twice
{% endcomment %}
{% assign spag = site.pages | sort: "order" %}
{% for my_page in spag %}
{% if my_page.title and my_page.content and my_page.url != "/index.html" and my_page.in_navbar %}
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{% endif %}
{% endfor %}
|