Navigation bar

This commit is contained in:
Valentin Popov 2018-04-18 01:00:42 +04:00
parent 09083fa736
commit af7ce99b07
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3

9
_includes/navbar.html Normal file
View File

@ -0,0 +1,9 @@
{% 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 }}
</a>
{% endfor %}
</nav>