Fixing wrong categories links below the post (just by analogy with tag links)

This commit is contained in:
Maksim Iakunin 2021-11-07 00:21:17 +03:00
parent 837417e19f
commit d8e840e0b7
No known key found for this signature in database
GPG Key ID: 629DE6EA48DAF1F4

View File

@ -7,7 +7,7 @@
{{ if .Params.date }}
<div class="post-date dt-published">{{ .Params.date.Format $dateFormat }}</div>
{{ end }}
<a class="post-hidden-url u-url" href="{{ .Permalink }}">{{ .Permalink }}</a>
<a href="{{ .Site.BaseURL }}" class="p-name p-author post-hidden-author h-card" rel="me">{{ .Params.author | default .Site.Params.author }}</a>
@ -16,7 +16,7 @@
{{ if .Params.categories }}
<ul class="post-categories">
{{ range .Params.categories }}
<li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li>
<li><a href="{{ "categories/" | absLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}