Skip to content

Commit 12f1e6f

Browse files
committed
refactor(tags): avoid URL errors caused by improper site.baseurl settings
Resolves #580
1 parent 94e8144 commit 12f1e6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_layouts/tags.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

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

0 commit comments

Comments
 (0)