aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/navbar.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/common/navbar.html')
-rw-r--r--_includes/common/navbar.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/_includes/common/navbar.html b/_includes/common/navbar.html
index a255619..9f01639 100644
--- a/_includes/common/navbar.html
+++ b/_includes/common/navbar.html
@@ -13,6 +13,16 @@
<ul class="nav navbar-nav">
{% assign page_list = site.pages | where_exp: "x","x.navbar_link" | sort: "navbar_priority" %}
{% for node in page_list %}
+ {% comment %}
+ Whether a page should be present in the navbar is determined by
+ the presense of navbar_link in the page's front matter. It can be
+ true, in which case page's title is used, or it can be custom HTML.
+
+ If the page is paginated, it should be marked as such by setting
+ navbar_paginated to true in its front matter. That way, /pageN/
+ pages, which would have the same navbar_link, wouldn't appear in
+ the navbar.
+ {% endcomment %}
{% if node.navbar_paginated %}
{% if navbar_has_paginated %}
{% continue %}