From 745c1407dedccd975aa2c4409387a05f260d84eb Mon Sep 17 00:00:00 2001 From: Jacek Lebioda <jacek.lebioda@uni.lu> Date: Fri, 29 Jun 2018 11:59:11 +0200 Subject: [PATCH] Hide unwanted pages in menu when `order` is less than 0 --- _includes/header.html | 2 +- jekyll-theme-lcsb-default.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 77b47a0..08d1aa0 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -40,7 +40,7 @@ {%- assign my_pages = site.pages | sort:"order" -%} {%- for my_page in my_pages -%} - {%- if my_page.title and my_page.autogen == nil -%} + {%- if my_page.title and my_page.autogen == nil and my_page.order > 0 -%} {%- if page.title contains my_page.title -%} <a class="active page-link{%- if site.new_menu -%}2 {%- endif -%}" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a> {% else %} diff --git a/jekyll-theme-lcsb-default.gemspec b/jekyll-theme-lcsb-default.gemspec index 427a00a..7cf2bc1 100644 --- a/jekyll-theme-lcsb-default.gemspec +++ b/jekyll-theme-lcsb-default.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "jekyll-theme-lcsb-default" - spec.version = "0.2.7" + spec.version = "0.2.8" spec.authors = ["Trefex", "jaceklebioda_lux"] spec.email = ["lcsb-sysadmins@uni.lu"] -- GitLab