aboutsummaryrefslogtreecommitdiff
path: root/_includes/navbar.html
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-05-08 10:37:34 +0300
committerValentin Popov <info@valentineus.link>2018-05-08 10:37:34 +0300
commitc6174916f505d373684c8a90dfd3cf6a9e910768 (patch)
tree241d6bd66aa21f18d3e44e987136d48855624f54 /_includes/navbar.html
parent7ee0e7a478eb03a8c77f343ebb69162948a18588 (diff)
downloadpopov.link-c6174916f505d373684c8a90dfd3cf6a9e910768.tar.xz
popov.link-c6174916f505d373684c8a90dfd3cf6a9e910768.zip
Navigation panel from Bootstrap
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes/navbar.html')
-rw-r--r--_includes/navbar.html21
1 files changed, 13 insertions, 8 deletions
diff --git a/_includes/navbar.html b/_includes/navbar.html
index c5d1de8..1c48ac8 100644
--- a/_includes/navbar.html
+++ b/_includes/navbar.html
@@ -1,11 +1,16 @@
{% assign pages = site.pages | where: "show", true %}
-<nav class="navigation">
- <a href="{{ site.url | uri_escape }}">Home</a>
-
- {% for page in pages %}
- <a 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>
- {% endfor %}
+<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>