Skip to content

Commit

Permalink
replace '#' with unicode for tags in URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
fannymugnier committed Mar 30, 2021
1 parent f962b09 commit 4e17412
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{% if page.taxonomy.tag %}
<div class="blog-info blog-tag"><i class="icon-tags"></i>
{% for tag in page.taxonomy.tag %}
<a href="{{ base_url }}/tag{{ config.system.param_sep }}{{ tag }}" rel="tag">{{ tag }}</a>{% if not loop.last %}, {% endif %}
<a href="{{ base_url }}/tag{{ config.system.param_sep }}{{ tag|replace({'#': '%23'}) }}" rel="tag">{{ tag }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</div>
{% endif %}
Expand Down

0 comments on commit 4e17412

Please sign in to comment.