Commit 557f41f5 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

The appearance of menu is parametrized with `new_menu` option in `_config.yml` file

parent d8e3a72c
......@@ -36,6 +36,7 @@ Update:
* _baseurl_ entry with the name of your repository,
* _title_ entry with your website's title,
* _email_ entry with your email,
* _new_menu_ to true, if you want to have menu items fully underlined (feel free to check how the site looks with the both options),
* _date_ entry to the year you want to appear in the footer,
* (optional) _banner_ to the name of the folder containing banner images (more later in this readme file)
* (optional) _logo_ to "small" or "big", depending on how wide your banner images are
......
......@@ -18,6 +18,7 @@ email: lcsb-sysadmins@uni.lu
banner: default # When you have custom images, change this setting's value to the name of the folder containing them
# Refer to assets/banners/default or assets/banners/frozen
logo: small # Change to "big" (without quotas) in case of having broad logo
new_menu: false
date: "2018"
description: >- # this means to ignore newlines until "baseurl:"
This is a default LCSB Jekyll template.
......
......@@ -42,9 +42,9 @@
{%- for my_page in my_pages -%}
{%- if my_page.title and my_page.autogen == nil -%}
{%- if page.title contains my_page.title -%}
<a class="page-link active" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
<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" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
<a class="page-link{%- if site.new_menu -%}2 {%- endif -%}" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{%- endif -%}
{%- endif -%}
{%- endfor -%}
......
......@@ -215,7 +215,7 @@ html {
padding-bottom: 5px;
}
.page-link {
.page-link, .page-link2 {
display: block;
padding: 5px 10px;
......
......@@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = "jekyll-theme-lcsb-default"
spec.version = "0.2.5"
spec.version = "0.2.6"
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