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

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-icons">
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
{% assign title = title | url_encode %}
{% assign url = page.url | absolute_url | url_encode %}
{% for share in site.data.share.platforms %}