From f91ef5d7c77ef43cdc75d4eb7abe4a1f63e2d254 Mon Sep 17 00:00:00 2001 From: "jacek.lebioda" <jacek.lebioda@uni.lu> Date: Wed, 26 Jun 2019 12:55:26 +0200 Subject: [PATCH] Trying to fix weird behaviour in header --- _includes/header.html | 15 +++++++++------ elixir-theme.gemspec | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 7613d6f..33544bd 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -2,12 +2,15 @@ <div id="site-header-wrapper"> <ul> <li><img src="https://elixir-europe.org/system/files/white-orange-logo.png" /></li> - <li><a {%- if page.section == 'About' -%}class="active"{%- endif -%} href="{{ site.baseurl }}/about-node">About</a></li> - <li><a {%- if page.section == 'Services' -%}class="active"{%- endif -%} href="{{ site.baseurl }}/services">Services</a></li> - <li><a {%- if page.section == 'Training' -%}class="active"{%- endif -%} href="{{ site.baseurl }}/training">Training</a></li> - <li><a {%- if page.section == 'Events' -%}class="active"{%- endif -%} href="{{ site.baseurl }}/events">Events</a></li> - <li><a {%- if page.section == 'News' -%}class="active"{%- endif -%} href="{{ site.baseurl }}/news">News</a></li> - <li><a {%- if page.section == 'Contact' -%}class="active"{%- endif -%} href="{{ site.baseurl }}/contact">Contact</a></li> + <li><a href="{{ site.baseurl }}/about-node" + {% if page.section == 'About' %} class="active" {% endif %} > + About</a> + </li> + <li><a {% if page.section == 'Services' %} class="active" {% endif %} href="{{ site.baseurl }}/services">Services</a></li> + <li><a {% if page.section == 'Training' %} class="active" {% endif %} href="{{ site.baseurl }}/training">Training</a></li> + <li><a {% if page.section == 'Events' %} class="active" {% endif %} href="{{ site.baseurl }}/events">Events</a></li> + <li><a {% if page.section == 'News' %} class="active" {% endif %} href="{{ site.baseurl }}/news">News</a></li> + <li><a {% if page.section == 'Contact' %} class="active" {% endif-%} href="{{ site.baseurl }}/contact">Contact</a></li> </ul> </div> </header> diff --git a/elixir-theme.gemspec b/elixir-theme.gemspec index 25b960f..15b3b5b 100644 --- a/elixir-theme.gemspec +++ b/elixir-theme.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "elixir-theme" - spec.version = "0.1.7" + spec.version = "0.1.8" spec.authors = ["jacek.lebioda"] spec.email = ["jacek.lebioda@uni.lu"] -- GitLab