diff options
author | Valentin Popov <info@valentineus.link> | 2018-04-23 00:22:53 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-04-23 00:22:53 +0300 |
commit | b8c158641aca8a9fc197d3c2a1a069b296cdc336 (patch) | |
tree | 765bd5d52ad6dba0b24f7b0143a4fedca914b943 /_includes | |
parent | c8a5749a198d6243aadcfdcb6c4c6c297d46c6ad (diff) | |
download | popov.link-b8c158641aca8a9fc197d3c2a1a069b296cdc336.tar.xz popov.link-b8c158641aca8a9fc197d3c2a1a069b296cdc336.zip |
Improved navigation bar
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/navbar.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/_includes/navbar.html b/_includes/navbar.html index d334f96..7c0c8c4 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -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> |