Improved navigation bar
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
c8a5749a19
commit
b8c158641a
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user