Skip to content

Commit 9973726

Browse files
committed
Fixing 'next post / previous post' tag links
1 parent 231adbe commit 9973726

File tree

3 files changed

+2
-38
lines changed

3 files changed

+2
-38
lines changed

_includes/tag-pagination.html

Lines changed: 0 additions & 18 deletions
This file was deleted.

_layouts/post.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h3 class="post-title">
5656
<p class="post-tags">
5757
{% if page.previous.tags.size > 0 %}
5858
{% for tag in page.previous.tags %}
59-
<a href="/tag/{{ tag | downcase | replace: ' ', '-' }}/">{{ tag }}</a>
59+
<a href="/tags/#{{ tag | cgi_encode }}">{{ tag }}</a>
6060
{% endfor %}
6161
{% endif %}
6262
</p>
@@ -73,7 +73,7 @@ <h3 class="post-title"><a href="{{ page.next.url }}">{{ page.next.title }}</a></
7373
<p class="post-tags">
7474
{% if page.next.tags.size > 0 %}
7575
{% for tag in page.next.tags %}
76-
<a href="/tag/{{ tag | downcase | replace: ' ', '-' }}/">{{ tag }}</a>
76+
<a href="/tags/#{{ tag | cgi_encode }}">{{ tag }}</a>
7777
{% endfor %}
7878
{% endif %}
7979
</p>

_layouts/tag.html

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)