diff options
-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> |