fix: correct encoding of spaces in share URLs (#835)

Resolves #835
This commit is contained in:
Cotes Chung 2023-01-06 06:44:08 +08:00
parent 98d48f5da4
commit f2d285844e
No known key found for this signature in database
GPG key ID: 0D9E54843167A808

View file

@ -6,6 +6,7 @@
<span class="share-label text-muted mr-1">{{ site.data.locales[site.lang].post.share }}</span> <span class="share-label text-muted mr-1">{{ site.data.locales[site.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 title = title | uri_escape %}
{% assign url = page.url | absolute_url | url_encode %} {% assign url = page.url | absolute_url | url_encode %}
{% for share in site.data.share.platforms %} {% for share in site.data.share.platforms %}