Merge pull request #520 from ZakKemble/fix-script-location-and-url-encode
This commit is contained in:
commit
d2bbcb791f
3 changed files with 6 additions and 6 deletions
|
@ -87,4 +87,7 @@
|
||||||
|
|
||||||
<script src="{{ site.data.assets[origin].jquery.js }}"></script>
|
<script src="{{ site.data.assets[origin].jquery.js }}"></script>
|
||||||
|
|
||||||
|
{% unless site.theme_mode %}
|
||||||
|
{% include mode-toggle.html %}
|
||||||
|
{% endunless %}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -6,10 +6,11 @@
|
||||||
<span class="share-label text-muted mr-1">{{ site.data.locales[lang].post.share }}</span>
|
<span class="share-label text-muted mr-1">{{ site.data.locales[lang].post.share }}</span>
|
||||||
<span class="share-icons">
|
<span class="share-icons">
|
||||||
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
|
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
|
||||||
{% assign url = page.url | absolute_url %}
|
{% assign title = title | url_encode %}
|
||||||
|
{% assign url = page.url | absolute_url | url_encode %}
|
||||||
|
|
||||||
{% for share in site.data.share.platforms %}
|
{% for share in site.data.share.platforms %}
|
||||||
{% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url | escape %}
|
{% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url %}
|
||||||
<a href="{{ link }}" data-toggle="tooltip" data-placement="top"
|
<a href="{{ link }}" data-toggle="tooltip" data-placement="top"
|
||||||
title="{{ share.type }}" target="_blank" rel="noopener" aria-label="{{ share.type }}">
|
title="{{ share.type }}" target="_blank" rel="noopener" aria-label="{{ share.type }}">
|
||||||
<i class="fa-fw {{ share.icon }}"></i>
|
<i class="fa-fw {{ share.icon }}"></i>
|
||||||
|
|
|
@ -19,10 +19,6 @@ layout: compress
|
||||||
|
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
|
|
||||||
{% unless site.theme_mode %}
|
|
||||||
{% include mode-toggle.html %}
|
|
||||||
{% endunless %}
|
|
||||||
|
|
||||||
<body data-spy="scroll" data-target="#toc" data-topbar-visible="true">
|
<body data-spy="scroll" data-target="#toc" data-topbar-visible="true">
|
||||||
|
|
||||||
{% include sidebar.html %}
|
{% include sidebar.html %}
|
||||||
|
|
Loading…
Reference in a new issue