Fix navbar generation algorithm

This commit is contained in:
2020-01-28 12:21:09 +00:00
parent 8c0345c0a9
commit 1b34bf6e87

View File

@@ -13,7 +13,7 @@
<span class="mdc-list-item__text">Home Page</span>
</a>
{% for project in site.pages | sort "title" %}
{% if project.url != "/" %}
{% if project.url != "/" and project.url != "/sitemap.xml" and project.url[-4:-1] != ".css" %}
<a class="mdc-list-item" href="{{ project.url | relative_url }}">
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">{{ project.icon }}</i>
<span class="mdc-list-item__text">{{ project.title }}</span>