Improved navigation bar

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2018-04-23 01:22:53 +04:00
parent c8a5749a19
commit b8c158641a
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3

View File

@ -1,9 +1,11 @@
{% assign pages = site.pages | where: "show", true %}
<nav class="navigation">
<a href="{{ site.url | uri_escape }}">Home</a>
{% for page in pages %}
<a href="{{ page.url | relative_url | uri_escape }}">
{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
{{ page.title | default: "Page" | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }}
</a>
{% endfor %}
</nav>