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

Show share link

parent 9ecc6719
*.gem
.bundle
# IDE-generated files
.idea/*
# Jekyll's files
.sass-cache
_site
# Ruby related files
.bundle
*.gem
Gemfile.lock
.DS_Store
\ No newline at end of file
# OS-related files
.DS_Store
test/*
......@@ -11,6 +11,7 @@ stages:
before_script:
- bundle install
# This will test whether the webpage builds
test:
stage: test
script:
......@@ -21,6 +22,7 @@ test:
except:
- master
# This will actually deploy the webpage when pushing to master
pages:
stage: deploy
script:
......@@ -31,6 +33,7 @@ pages:
only:
- master
# This will push the gem to ruby-gems when tagged
release:
stage: release
script:
......
......@@ -47,6 +47,15 @@ pagination:
before: 2
after: 2
# Use this setting in your repository
# which part of the URL would you like to use to generate sharing link
# (see _includes/footer.html)
include_link_index: 2
# Use this setting in your repository
# Which URL would you like to use to display as share URL
share_url: https://howto.lcsb.uni.lu/?
# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
......@@ -68,4 +77,4 @@ kramdown:
hard_wrap: false
footnote_nr: 1
show_warnings: true
# parse_block_html: true
\ No newline at end of file
# parse_block_html: true
<footer class="site-footer h-card">
<footer class="site-footer h-card">
<div class="wrapper footer-wrapper">
<data class="u-url" href="{{ "/" | relative_url }}"></data>
......@@ -10,14 +9,24 @@
type="image/svg+xml" />
</div>
<p>
© <a href="https://wwwen.uni.lu/" target="_parent">Université du Luxembourg </a>{{ 'now' | date: "%Y" }}. All rights reserved.
{% comment %}This is used to generate share URL for howto-pages{% endcomment %}
{% if page.include_link %}
<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: "/" %}
{{ site.share_url }}{{ parts[site.include_link_index] }}
</a>
</p>
{% endif %}
{%- include social.html -%}
<p>
© <a href="https://wwwen.uni.lu/" target="_parent">
<strong>Université du Luxembourg</strong>,
</a>
{{ 'now' | date: "%Y" }}. All rights reserved.
{%- include social.html -%}
</p>
</div>
</div>
</div>
</footer>
......@@ -295,6 +295,10 @@ html {
}
}
.site-footer-share {
margin-bottom: 4px;
}
/**
......@@ -394,4 +398,4 @@ html {
.center-image {
margin: 0 auto;
display: block;
}
\ No newline at end of file
}
......@@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = "jekyll-theme-lcsb-default"
spec.version = "0.2.21"
spec.version = "0.2.22"
spec.authors = ["Trefex", "jaceklebioda_lux"]
spec.email = ["lcsb-sysadmins@uni.lu"]
......@@ -18,5 +18,3 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", ">= 1.16.1"
spec.add_development_dependency "rake", "~> 12.3"
end
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