diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 04:55:17 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 04:55:17 +0300 |
commit | e15fb6663612ab320d29fd9cb0b22d148b127847 (patch) | |
tree | ce9ac29db8675cf41d2676db58c71daa0e179895 /_includes/common/navbar.html | |
parent | add categories.html (diff) | |
download | blog-e15fb6663612ab320d29fd9cb0b22d148b127847.tar.gz blog-e15fb6663612ab320d29fd9cb0b22d148b127847.zip |
fix navbar ordering
Diffstat (limited to '_includes/common/navbar.html')
-rw-r--r-- | _includes/common/navbar.html | 3 |
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 %} |