aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--_includes/common/navbar.html6
-rw-r--r--index.html1
2 files changed, 7 insertions, 0 deletions
diff --git a/_includes/common/navbar.html b/_includes/common/navbar.html
index ea0bae7..d2f5ea3 100644
--- a/_includes/common/navbar.html
+++ b/_includes/common/navbar.html
@@ -12,6 +12,12 @@
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
{% for node in site.pages %}
+ {% if node.root_page %}
+ {% if navbar_has_root_page %}
+ {% continue %}
+ {% endif %}
+ {% assign navbar_has_root_page = true %}
+ {% endif %}
{% 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>
diff --git a/index.html b/index.html
index 66c0843..8008e91 100644
--- a/index.html
+++ b/index.html
@@ -4,6 +4,7 @@ layout: sidebar
groups:
- navbar
navbar_link: <span class="glyphicon glyphicon-home"></span>&nbsp;Main page
+root_page: true
---
{% if site.posts.size == 0 %}
<p class="h3">Sorry, no posts have been added yet.</p>