mirror of
https://github.com/valentineus/popov.link.git
synced 2025-07-02 23:50:27 +03:00
Improved navigation bar
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user