fix: category should not print hash

This commit is contained in:
Jixun Wu 2022-01-03 09:22:43 +00:00
parent bb8d4de6b1
commit b8c6c7e23b

View File

@ -17,7 +17,7 @@
<ul class="post-categories"> <ul class="post-categories">
{{ range $cat_name := .Params.categories }} {{ range $cat_name := .Params.categories }}
{{ $cat := ($.Site.GetPage (printf "/categories/%s" $cat_name)) }} {{ $cat := ($.Site.GetPage (printf "/categories/%s" $cat_name)) }}
<li><a href="{{ $cat.Permalink }}">#{{ $cat.Title | default $cat_name }}</a></li> <li><a href="{{ $cat.Permalink }}">{{ $cat.Title | default $cat_name }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}