2020-05-24 21:55:32 +02:00
|
|
|
{{ $dateFormat := "2006-01-02" }}
|
|
|
|
{{ if .Site.Params.dateFormat }}
|
|
|
|
{{ $dateFormat = .Site.Params.dateFormat }}
|
|
|
|
{{ end }}
|
2023-06-07 00:21:31 +02:00
|
|
|
{{ $machineDateFormat := "2006-01-02" }}
|
2020-05-24 21:55:32 +02:00
|
|
|
|
2023-11-18 12:54:41 +01:00
|
|
|
<div class="post-info noselect">
|
2020-02-18 18:52:31 +01:00
|
|
|
{{ if .Params.date }}
|
2023-06-07 00:21:31 +02:00
|
|
|
<div class="post-date dt-published">
|
2024-03-04 07:53:47 +01:00
|
|
|
<time datetime="{{ .Params.date.Format $machineDateFormat }}">
|
2023-06-07 00:21:31 +02:00
|
|
|
{{- .Params.date.Format $dateFormat -}}
|
2024-03-04 07:53:47 +01:00
|
|
|
</time>
|
2023-06-07 00:21:31 +02:00
|
|
|
{{ if ne .Params.date .Params.lastMod -}}
|
|
|
|
[{{ i18n "lastMod" }} <time datetime="{{ .Params.lastMod.Format $machineDateFormat }}">
|
|
|
|
{{- .Params.lastMod.Format $dateFormat -}}
|
|
|
|
</time>]
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
2020-02-18 18:52:31 +01:00
|
|
|
{{ end }}
|
2021-11-06 22:21:17 +01:00
|
|
|
|
2024-04-09 13:33:28 +02:00
|
|
|
<a class="post-hidden-url u-url" href="{{ .RelPermalink }}">{{ .RelPermalink }}</a>
|
2021-07-14 00:52:52 +02:00
|
|
|
<a href="{{ .Site.BaseURL }}" class="p-name p-author post-hidden-author h-card" rel="me">{{ .Params.author | default .Site.Params.author }}</a>
|
2021-02-23 21:49:44 +01:00
|
|
|
|
2021-01-20 20:12:50 +01:00
|
|
|
|
2020-06-06 21:05:21 +02:00
|
|
|
<div class="post-taxonomies">
|
2020-02-18 18:52:31 +01:00
|
|
|
{{ if .Params.categories }}
|
2020-06-06 21:05:21 +02:00
|
|
|
<ul class="post-categories">
|
2021-12-31 23:03:40 +01:00
|
|
|
{{ range $cat_name := .Params.categories }}
|
2023-05-05 21:16:26 +02:00
|
|
|
{{ $cat := ($.Site.GetPage (printf "/categories/%s" $cat_name | urlize )) }}
|
2024-04-09 13:33:28 +02:00
|
|
|
<li><a href="{{ $cat.RelPermalink }}">{{ $cat.Title | default $cat_name }}</a></li>
|
2020-02-18 18:52:31 +01:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2023-02-16 04:27:56 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ if .Params.tags }}
|
|
|
|
<ul class="post-tags">
|
|
|
|
{{ range $tag_name := .Params.tags }}
|
2023-05-05 21:16:26 +02:00
|
|
|
{{ $tag := ($.Site.GetPage (printf "/tags/%s" $tag_name | urlize )) }}
|
2024-04-09 13:33:28 +02:00
|
|
|
<li><a href="{{ $tag.RelPermalink }}">#{{ $tag.Title | default $tag_name }}</a></li>
|
2023-02-16 04:27:56 +01:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Params.authors }}
|
|
|
|
<ul class="post-authors">
|
|
|
|
{{ range $author_name := .Params.authors }}
|
2023-05-05 21:16:26 +02:00
|
|
|
{{ $author := ($.Site.GetPage (printf "/authors/%s" $author_name | urlize )) }}
|
2024-04-09 13:33:28 +02:00
|
|
|
<li><a href="{{ $author.RelPermalink }}">@{{ $author_name }}</a></li>
|
2023-02-16 04:27:56 +01:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2020-02-18 18:52:31 +01:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2020-03-08 18:10:05 +01:00
|
|
|
</div>
|