aboutsummaryrefslogtreecommitdiff
path: root/layouts/post
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
parent553d15e15f3affdfda48686469309e01f2b994f7 (diff)
fix: always use relURL
Diffstat (limited to 'layouts/post')
-rw-r--r--layouts/post/single.html4
-rw-r--r--layouts/post/summary.html2
2 files changed, 3 insertions, 3 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 }}
diff --git a/layouts/post/summary.html b/layouts/post/summary.html
index 8a4e774..bb55d5f 100644
--- a/layouts/post/summary.html
+++ b/layouts/post/summary.html
@@ -9,7 +9,7 @@
{{ with .Params.categories -}}
<div class="post-category">
{{ range . -}}
- <a href="/categories/{{ . | urlize }}">{{ . }}</a>
+ <a href="{{ "categories" | relURL }}/{{ . | urlize }}/">{{ . }}</a>
{{- end }}
</div>
{{- end }}