fix: spaces in post title are encoded when sharing

Reproducible on iOS Safari
This commit is contained in:
Cotes Chung 2022-12-07 02:18:21 +08:00
parent ec98f07aca
commit 7efd2f8aa2
No known key found for this signature in database
GPG Key ID: 0D9E54843167A808
1 changed files with 0 additions and 1 deletions

View File

@ -6,7 +6,6 @@
<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 | url_encode %}
{% 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 %}