popov.link/_includes/navbar.html
Valentin Popov 0645f56405
fix(navbar): Correct the look of navigation links
Signed-off-by: Valentin Popov <info@valentineus.link>
2018-12-16 17:23:50 +04:00

27 lines
940 B
HTML

{% assign pages = site.pages | where: "show", true %}
<nav role="navigation">
<ul class="nav-pills">
{% unless page.url == "/index.html" %}
<li role="presentation">
<strong>
<a class="nav-link" href="/">Home</a>
</strong>
</li>
{% endunless %}
<!-- Right side -->
<ul class="nav-pills nav-right">
{% for page in pages %}
<li role="presentation">
<strong>
<a class="nav-link" href="{{ page.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</a>
</strong>
</li>
{% endfor %}
</ul>
</ul>
</nav>