popov.link/_includes/navbar.html
Valentin Popov b8c158641a
Improved navigation bar
Signed-off-by: Valentin Popov <info@valentineus.link>
2018-04-23 01:22:53 +04:00

12 lines
371 B
HTML

{% 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 | default: "Page" | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }}
</a>
{% endfor %}
</nav>