diff options
author | Valentin Popov <valentineus@gmail.com> | 2018-04-11 17:48:07 +0300 |
---|---|---|
committer | Valentin Popov <valentineus@gmail.com> | 2018-04-11 17:48:07 +0300 |
commit | 7ad1ac47915233542ea2fae54064d921b85bd3eb (patch) | |
tree | 97f84265d114aea37e58dc5814d86b8dc1b7a68b /_includes | |
parent | fe10688de882f2c7b2b2ddddbf0db427bb9591c8 (diff) | |
download | popov.link-7ad1ac47915233542ea2fae54064d921b85bd3eb.tar.xz popov.link-7ad1ac47915233542ea2fae54064d921b85bd3eb.zip |
Fixed the generation of links in the header
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/header.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/_includes/header.html b/_includes/header.html index 655a8b4..57a798f 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -3,10 +3,11 @@ <ul class="navigation-list float-right"> <li class="navigation-item"> {% for item in site.pages reversed %} + {% assign title = item.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify %} + {% assign link = item.url | relative_url | uri_escape %} + <!-- Show the link --> {% if item.show == true %} - <a href="{{ item.url | relative_url | uri_escape }}" class="navigation-link"> - {{ item.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }} - </a> + <a href="{{ link }}" class="navigation-link">{{ title }}</a> {% endif %} {% endfor %} </li> |