aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/navbar.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-25 03:20:21 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-25 03:20:21 +0300
commit860ae3c81409ba0e49c224bc1431e1835d500196 (patch)
tree34d864b6e425e84b85c1c203d7d01f039b655a3e /_includes/common/navbar.html
parentREADME update (diff)
downloadsorting-algorithms-860ae3c81409ba0e49c224bc1431e1835d500196.tar.gz
sorting-algorithms-860ae3c81409ba0e49c224bc1431e1835d500196.zip
move common assets to common/, more info to config
Diffstat (limited to '_includes/common/navbar.html')
-rw-r--r--_includes/common/navbar.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/_includes/common/navbar.html b/_includes/common/navbar.html
new file mode 100644
index 0000000..af4a1c5
--- /dev/null
+++ b/_includes/common/navbar.html
@@ -0,0 +1,26 @@
+<nav class="navbar navbar-default navbar-static-top" role="navigation">
+ <div class="container">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="/">{{ site.personal_info.name }}</a>
+ </div>
+ <div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ {% for node in site.pages %}
+ {% if node.groups contains 'navbar' %}
+ {% if page.url == node.url %}
+ <li class="active"><a href="{{ site.baseurl }}{{ node.url }}" class="active">{{ node.navbar_link }}</a></li>
+ {% else %}
+ <li><a href="{{ site.baseurl }}{{ node.url }}">{{ node.navbar_link }}</a></li>
+ {% endif %}
+ {% endif %}
+ {% endfor %}
+ </ul>
+ </div>
+ </div>
+</nav>