Gitlab migration complete. If you have any issue please read the FAQ.

Commit e5ef27de authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Merge branch 'fix-if' into 'latest'

fix if condition when no order specified

See merge request core-services/jekyll-theme-lcsb-default!22
parents 8c71d8e7 3b5e85a1
......@@ -3,7 +3,7 @@
<div>
{%- assign default_paths = site.pages | map: "path" -%}
{%- assign page_paths = site.header_pages | default: default_paths -%}
{%- if site.banner_link -%}
{%- assign banner_link = site.banner_link -%}
{%- else -%}
......@@ -46,8 +46,8 @@
{%- 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 != -1 -%}
{%- if my_page.order != nil or my_page.order != '' or my_page.order > 0 -%}
{%- if my_page.title and my_page.autogen == nil and my_page.order != '' and my_page.order != nil -%}
{%- if 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.3.11"
spec.version = "0.3.12"
spec.authors = ["Trefex", "jaceklebioda_lux"]
spec.email = ["lcsb-sysadmins@uni.lu"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment