summaryrefslogtreecommitdiff
path: root/layouts/posts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-06-06 16:08:37 +0800
committerEltrac <hi@guhub.cn>2025-06-06 16:08:37 +0800
commit17cc7da7218f24775bcdcbd1631c1d9380492d1d (patch)
tree48518c0fae5ccd98e6fda6a5b6806420938b3f6a /layouts/posts
parent1de3fcd5b70746251b37f711e999c21f02f4b51d (diff)
refactor: reuse tag list
Diffstat (limited to 'layouts/posts')
-rw-r--r--layouts/posts/single.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 86d595d6..7a7051f0 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -19,9 +19,7 @@
{{ partial "components/date" . }}
{{ if or .Params.categories .Params.tags }}<span>ยท</span>{{ end }}
{{ partial "components/category-pill" . }}
- {{ range .Params.tags }}
- <a class="post-tag" href="{{ site.LanguagePrefix }}/tags/{{ lower . | urlize }}/">#{{ . }}</a>
- {{ end }}
+ {{ partial "components/tags" . }}
</div>
</header>