Skip to content

Commit

Permalink
refactor(tags): avoid URL errors caused by improper site.baseurl se…
Browse files Browse the repository at this point in the history
…ttings

Resolves cotes2020#580
  • Loading branch information
cotes2020 committed May 24, 2022
1 parent 829e2ee commit dac3518
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _layouts/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

{% for t in sorted_tags %}
<div>
<a class="tag" href="{{ site.baseurl }}/tags/{{ t | slugify | url_encode }}/">{{ t }}<span class="text-muted">{{ site.tags[t].size }}</span></a>
<a class="tag" href="{{ t | slugify | url_encode | prepend: '/tags/' | append: '/' | relative_url }}">
{{ t }}<span class="text-muted">{{ site.tags[t].size }}</span>
</a>
</div>
{% endfor %}

Expand Down

0 comments on commit dac3518

Please sign in to comment.