Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Miroslav Kratochvil
jekyll-theme-lcsb-default
Commits
4f7e61d4
Commit
4f7e61d4
authored
Feb 07, 2020
by
Jacek Lebioda
Browse files
feat: Added new sharelink system
parent
4cdd1fac
Changes
2
Hide whitespace changes
Inline
Side-by-side
_includes/footer.html
View file @
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] }}"
>
...
...
jekyll-theme-lcsb-default.gemspec
View file @
4f7e61d4
...
...
@@ -2,7 +2,7 @@
Gem
::
Specification
.
new
do
|
spec
|
spec
.
name
=
"jekyll-theme-lcsb-default"
spec
.
version
=
"0.2.2
3
"
spec
.
version
=
"0.2.2
4
"
spec
.
authors
=
[
"Trefex"
,
"jaceklebioda_lux"
]
spec
.
email
=
[
"lcsb-sysadmins@uni.lu"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment