Skip to content

Commit fcbee50

Browse files
LalitNMpeterjc
authored andcommitted
Fixed tag url at the top of any wiki page
1 parent 335623c commit fcbee50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_layouts/wiki.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
<div class="page">
66
<ul class="tag_list_in_post">
7-
{% for tag in page.tags %}<li class="inline tag_list_item"><a class="tag_list_link" href="/wiki/Category%3A{{ tag | replace:' ','_' }}">{{ tag }}</a></li>{% endfor %}
7+
{% for tag in page.tags %}
8+
{% assign tag_with_ = tag | replace:' ','_' %}
9+
{% assign rawlink = "/wiki/Category%3A" | append: tag_with_ %}
10+
<li class="inline tag_list_item"><a class="tag_list_link" href={{ rawlink | relative_url }}>{{ tag }}</a></li>
11+
{% endfor %}
812
</ul>
913
<h1 class="page-title">{{ page.title }}</h1>
1014
{{ content }}

0 commit comments

Comments
 (0)