hugo-theme-anubis2/layouts/partials/postInfo.html
Thorsten f0969d9a3f
Update postInfo.html
Fix wrong category links
2020-07-25 21:53:56 +02:00

27 lines
894 B
HTML

{{ $dateFormat := "2006-01-02" }}
{{ if .Site.Params.dateFormat }}
{{ $dateFormat = .Site.Params.dateFormat }}
{{ end }}
<div class="post-info">
{{ if .Params.date }}
<div class="post-date">{{ .Params.date.Format $dateFormat }}</div>
{{ end }}
<div class="post-taxonomies">
{{ if .Params.categories }}
<ul class="post-categories">
{{ range .Params.categories }}
<li><a href="{{ "categories/" | absLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}
{{ if .Params.tags }}
<ul class="post-tags">
{{ range .Params.tags }}
<li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}
</div>
</div>