Commit 0836d47d authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

chore(merge): Merge branch 'new-share-link' into 'develop'

feat: Added new sharelink system

See merge request core-services/jekyll-theme-lcsb-default!9
parents a9e12dbb 4f7e61d4
......@@ -10,7 +10,13 @@
</div>
{% comment %}This is used to generate share URL for howto-pages{% endcomment %}
{% if page.include_link %}
{% if page.shortcut %}
<p class="site-footer-share">Share this page:
<a href="{{ site.share_url }}?{{ page.shortcut }}">
{{ site.share_url }}?{{ page.shortcut }}
</a>
</p>
{% elsif 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 }}{{ parts[site.include_link_index] }}">
......
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