Fixed the generation of links in the header

This commit is contained in:
Valentin Popov 2018-04-11 14:48:07 +00:00
parent fe10688de8
commit 7ad1ac4791

View File

@ -3,10 +3,11 @@
<ul class="navigation-list float-right"> <ul class="navigation-list float-right">
<li class="navigation-item"> <li class="navigation-item">
{% for item in site.pages reversed %} {% 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 %} {% if item.show == true %}
<a href="{{ item.url | relative_url | uri_escape }}" class="navigation-link"> <a href="{{ link }}" class="navigation-link">{{ title }}</a>
{{ item.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
</a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</li> </li>