aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--_config.yml7
-rw-r--r--_includes/common/navbar.html3
-rw-r--r--categories.html1
-rw-r--r--index.html1
4 files changed, 11 insertions, 1 deletions
diff --git a/_config.yml b/_config.yml
index b3dc57b..2c56abb 100644
--- a/_config.yml
+++ b/_config.yml
@@ -13,6 +13,13 @@ exclude:
paginate: 10
+defaults:
+ - scope:
+ path: ""
+ type: pages
+ values:
+ navbar_priority: 999
+
excerpt_separator: ""
include_comments: true
minified_externals: true
diff --git a/_includes/common/navbar.html b/_includes/common/navbar.html
index d2f5ea3..6cf0e74 100644
--- a/_includes/common/navbar.html
+++ b/_includes/common/navbar.html
@@ -11,7 +11,8 @@
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
- {% for node in site.pages %}
+ {% assign page_list = site.pages | sort: "navbar_priority" %}
+ {% for node in page_list %}
{% if node.root_page %}
{% if navbar_has_root_page %}
{% continue %}
diff --git a/categories.html b/categories.html
index 06f14ce..a8a9023 100644
--- a/categories.html
+++ b/categories.html
@@ -4,6 +4,7 @@ title: Categories
groups:
- navbar
navbar_link: <span class="glyphicon glyphicon-th-list"></span>&nbsp;Categories
+navbar_priority: 2
---
{% for category in site.categories %}
<h1><a class="category" href="{{ site.baseurl }}{{ category[0] | slugify: 'pretty' }}">{{ category[0] }}</a></h1>
diff --git a/index.html b/index.html
index 6308849..4800632 100644
--- a/index.html
+++ b/index.html
@@ -4,6 +4,7 @@ layout: default
groups:
- navbar
navbar_link: <span class="glyphicon glyphicon-home"></span>&nbsp;Main page
+navbar_priority: 1
root_page: true
---
{% if site.posts.size == 0 %}