aboutsummaryrefslogtreecommitdiff
path: root/layouts/post/single.html
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-08-31 00:18:22 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-08-31 00:18:22 +0800
commit4a2676396cb0a991dae12018be96462b3eec27f5 (patch)
tree7cdf0c3d2b254bf84a9a46d2068c3d1fc5c2c602 /layouts/post/single.html
parent553d15e15f3affdfda48686469309e01f2b994f7 (diff)
fix: always use relURL
Diffstat (limited to 'layouts/post/single.html')
-rw-r--r--layouts/post/single.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html
index 81c0939..62c317c 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -12,7 +12,7 @@
{{ with .Params.categories -}}
<div class="post-category">
{{ range . -}}
- <a href="/categories/{{ . | urlize }}">{{ . }}</a>
+ <a href="{{ "categories" | relURL }}/{{ . | urlize }}/">{{ . }}</a>
{{- end }}
</div>
{{- end }}
@@ -37,7 +37,7 @@
{{ with .Params.tags -}}
<div class="post-tags">
{{ range . }}
- <a href="/tags/{{ . | urlize }}">{{ . }}</a>
+ <a href="{{ "tags" | relURL }}/{{ . | urlize }}/">{{ . }}</a>
{{ end }}
</div>
{{- end }}