From 5c44239e9152f3b63b923afb8fc7cfa0f1c4b8ed Mon Sep 17 00:00:00 2001 From: Jacek Lebioda <jacek.lebioda@uni.lu> Date: Thu, 5 Jul 2018 14:03:20 +0200 Subject: [PATCH] Pages without `order` should appear in menu by default now --- _includes/header.html | 12 +++++++----- jekyll-theme-lcsb-default.gemspec | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 08d1aa0..9198263 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -40,11 +40,13 @@ {%- assign my_pages = site.pages | sort:"order" -%} {%- for my_page in my_pages -%} - {%- 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 %} - <a class="page-link{%- if site.new_menu -%}2 {%- endif -%}" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a> + {%- if my_page.title and my_page.autogen == nil -%} + {%- if my_page.order != nil or my_page.order != '' or 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 %} + <a class="page-link{%- if site.new_menu -%}2 {%- endif -%}" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a> + {%- endif -%} {%- endif -%} {%- endif -%} {%- endfor -%} diff --git a/jekyll-theme-lcsb-default.gemspec b/jekyll-theme-lcsb-default.gemspec index 2324ff3..c713c83 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.11" + spec.version = "0.2.12" spec.authors = ["Trefex", "jaceklebioda_lux"] spec.email = ["lcsb-sysadmins@uni.lu"] -- GitLab