rename partials for consistency

This commit is contained in:
Dmitry Kolosov 2021-07-09 19:00:52 +03:00
parent de6decde38
commit 6b9c2ef4eb
12 changed files with 10 additions and 10 deletions

View file

@ -0,0 +1,31 @@
{{ $dateFormat := "2006-01-02" }}
{{ if .Site.Params.dateFormat }}
{{ $dateFormat = .Site.Params.dateFormat }}
{{ end }}
<div class="post-info">
{{ 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>
<div class="post-taxonomies">
{{ if .Params.categories }}
<ul class="post-categories">
{{ range .Params.categories }}
<li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</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>