Skip to content
Snippets Groups Projects
Commit 745c1407 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Hide unwanted pages in menu when `order` is less than 0

parent f9738291
No related branches found
No related tags found
No related merge requests found
......@@ -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 %}
......
......@@ -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"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment