Skip to content

Commit 06fb830

Browse files
authored
Merge pull request #2634 from jorgembfigueira/fix/tag-link-comma-stripping
Fix tag links breaking when post tags are comma-separated
2 parents 73d2275 + 79b389e commit 06fb830

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div class="post-date">
1616
{{ page.date | date: '%B %d, %Y' }}
1717
{% if page.tags %}
18-
<span class="tags">{% for tag in page.tags %}<a href="{{site.baseurl}}/blog/tag/{{ tag | downcase | replace: '.', '-' }}">#{{ tag | downcase }}</a>{% endfor %}</span>
18+
<span class="tags">{% for tag in page.tags %}<a href="{{site.baseurl}}/blog/tag/{{ tag | downcase | replace: ',', '' | replace: '.', '-' }}">#{{ tag | downcase | replace: ',', '' }}</a>{% endfor %}</span>
1919
{% endif %}
2020
</div>
2121
<h1 class="post-title">{{ page.title }}</h1>

0 commit comments

Comments
 (0)