Fixed special characters in URL.

This commit is contained in:
Cotes Chung 2020-04-24 14:49:45 +08:00
parent 8c21272048
commit 7cea137bf4
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
{% for trend in trends %}
{% assign count = count | plus: 1 %}
{% assign tag = trend | split: ":" | last %}
<a class="post-tag" href="{{ site.baseurl }}/tags/{{ tag | downcase }}/">{{ tag | replace: '-', ' ' }}</a>
<a class="post-tag" href="{{ site.baseurl }}/tags/{{ tag | downcase | url_encode }}/">{{ tag | replace: '-', ' ' }}</a>
{% if count >= MAX %}
{% break %}
{% endif %}