aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/navbar.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 04:55:17 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 04:55:17 +0300
commite15fb6663612ab320d29fd9cb0b22d148b127847 (patch)
treece9ac29db8675cf41d2676db58c71daa0e179895 /_includes/common/navbar.html
parentadd categories.html (diff)
downloadjekyll-theme-e15fb6663612ab320d29fd9cb0b22d148b127847.tar.gz
jekyll-theme-e15fb6663612ab320d29fd9cb0b22d148b127847.zip
fix navbar ordering
Diffstat (limited to '_includes/common/navbar.html')
-rw-r--r--_includes/common/navbar.html3
1 files changed, 2 insertions, 1 deletions
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 %}