Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
core-services
jekyll-theme-lcsb-default
Commits
5c44239e
Commit
5c44239e
authored
Jul 05, 2018
by
Jacek Lebioda
Browse files
Pages without `order` should appear in menu by default now
parent
ada7d48c
Changes
2
Hide whitespace changes
Inline
Side-by-side
_includes/header.html
View file @
5c44239e
...
...
@@ -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 -%}
...
...
jekyll-theme-lcsb-default.gemspec
View file @
5c44239e
...
...
@@ -2,7 +2,7 @@
Gem
::
Specification
.
new
do
|
spec
|
spec
.
name
=
"jekyll-theme-lcsb-default"
spec
.
version
=
"0.2.1
1
"
spec
.
version
=
"0.2.1
2
"
spec
.
authors
=
[
"Trefex"
,
"jaceklebioda_lux"
]
spec
.
email
=
[
"lcsb-sysadmins@uni.lu"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment