From 4cdd1facc20ef8fe8893ce82a30f7376530dabc2 Mon Sep 17 00:00:00 2001
From: Jacek Lebioda <jacek.lebioda@uni.lu>
Date: Tue, 29 Oct 2019 12:30:27 +0100
Subject: [PATCH] Bugfix

---
 _includes/footer.html             | 4 ++--
 jekyll-theme-lcsb-default.gemspec | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/_includes/footer.html b/_includes/footer.html
index 678c686..43d9e78 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -11,9 +11,9 @@
 
       {% comment %}This is used to generate share URL for howto-pages{% endcomment %}
       {% if page.include_link %}
+        {% assign parts = page.url | absolute_url | replace: ".html", "" | replace: "http://", "" | replace: "https://", "" | split: "/" %}
       <p class="site-footer-share">Share this page:
-        <a href="{{ site.share_url }}{{ page.url }}">
-          {% assign parts = page.url | absolute_url | replace: ".html", "" | replace: "http://", "" | replace: "https://", "" | split: "/" %}
+        <a href="{{ site.share_url }}{{ parts[site.include_link_index] }}">
           {{ site.share_url }}{{ parts[site.include_link_index] }}
         </a>
       </p>
diff --git a/jekyll-theme-lcsb-default.gemspec b/jekyll-theme-lcsb-default.gemspec
index 4f6eca2..d3404af 100644
--- a/jekyll-theme-lcsb-default.gemspec
+++ b/jekyll-theme-lcsb-default.gemspec
@@ -2,7 +2,7 @@
 
 Gem::Specification.new do |spec|
   spec.name          = "jekyll-theme-lcsb-default"
-  spec.version       = "0.2.22"
+  spec.version       = "0.2.23"
   spec.authors       = ["Trefex", "jaceklebioda_lux"]
   spec.email         = ["lcsb-sysadmins@uni.lu"]
 
-- 
GitLab