popov.link/_includes/navbar.html
Valentin Popov c6174916f5
Navigation panel from Bootstrap
Signed-off-by: Valentin Popov <info@valentineus.link>
2018-05-08 11:37:34 +04:00

17 lines
669 B
HTML

{% assign pages = site.pages | where: "show", true %}
<nav class="bg-light navbar navbar-expand navbar-light sticky-top" role="navigation">
<div class="container">
<a class="mr-auto navbar-brand" href="#">{{ site.title }}</a>
<ul class="navbar-nav">
{% for page in pages %}
<li class="nav-item">
<a class="nav-link" href="{{ page.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
{{ page.title | default: "Page" | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</a>
</li>
{% endfor %}
</ul>
</div>
</nav>