2023-07-05 19:48:39 +00:00
|
|
|
<span class="flex align-center no-wrap gblog-post__meta--update">
|
2022-04-30 11:36:39 +00:00
|
|
|
<svg class="gblog-icon gblog_date"><use xlink:href="#gblog_date"></use></svg>
|
2021-12-30 14:55:55 +00:00
|
|
|
<span class="gblog-post__tag">
|
|
|
|
<time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
|
|
|
{{ if .Lastmod.After (.Date.AddDate 0 0 1) }}
|
|
|
|
Updated on
|
|
|
|
{{ end }}
|
|
|
|
{{ .Lastmod.Format "Jan 2, 2006" }}
|
|
|
|
</time>
|
|
|
|
</span>
|
2021-11-20 13:36:26 +00:00
|
|
|
</span>
|
|
|
|
|
2023-07-05 19:48:39 +00:00
|
|
|
<span class="flex align-center no-wrap gblog-post__meta--readtime">
|
2022-04-30 11:36:39 +00:00
|
|
|
<svg class="gblog-icon gblog_timer"><use xlink:href="#gblog_timer"></use></svg>
|
2021-12-30 14:55:55 +00:00
|
|
|
<span class="gblog-post__tag">{{ .ReadingTime }} min read</span>
|
2021-11-20 13:36:26 +00:00
|
|
|
</span>
|
|
|
|
|
|
|
|
{{ if eq .Params.weight 1 }}
|
2023-07-05 19:48:39 +00:00
|
|
|
<span class="flex align-center no-wrap gblog-post__meta--pinned">
|
2022-04-30 11:36:39 +00:00
|
|
|
<svg class="gblog-icon gblog_pin"><use xlink:href="#gblog_pin"></use></svg>
|
2021-11-20 13:36:26 +00:00
|
|
|
<span class="gblog-post__tag">Pinned</span>
|
2021-12-30 14:55:55 +00:00
|
|
|
</span>
|
2021-11-20 13:36:26 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ $ac := 0 }}
|
|
|
|
{{ with .Params.authors }}
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ range sort . }}
|
2021-11-20 13:36:26 +00:00
|
|
|
{{ $author := index $.Site.Data.authors . }}
|
|
|
|
{{ with $.Site.GetPage (printf "/authors/%s" . | urlize) }}
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ if eq $ac 0 }}
|
2023-07-05 19:48:39 +00:00
|
|
|
<span class="flex align-center no-wrap gblog-post__meta--author">
|
2022-04-30 11:36:39 +00:00
|
|
|
<svg class="gblog-icon gblog_person"><use xlink:href="#gblog_person"></use></svg>
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ template "post-author" dict "name" $author.name "page" . }}
|
2021-11-20 13:36:26 +00:00
|
|
|
</span>
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ else }}
|
2023-07-05 19:48:39 +00:00
|
|
|
<span class="flex align-center gblog-post__meta--author">
|
2022-02-06 23:10:30 +00:00
|
|
|
{{ template "post-author" dict "name" $author.name "page" . }}
|
|
|
|
</span>
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ end }}
|
2021-11-20 13:36:26 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ $ac = (add $ac 1) }}
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ end }}
|
2021-11-20 13:36:26 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ $tc := 0 }}
|
|
|
|
{{ with .Params.tags }}
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ range sort . }}
|
2021-11-20 13:36:26 +00:00
|
|
|
{{ $name := . }}
|
|
|
|
{{ with $.Site.GetPage (printf "/tags/%s" $name | urlize) }}
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ if eq $tc 0 }}
|
2023-07-05 19:48:39 +00:00
|
|
|
<span class="flex align-center no-wrap gblog-post__meta--tag">
|
2022-04-30 11:36:39 +00:00
|
|
|
<svg class="gblog-icon gblog_bookmark"><use xlink:href="#gblog_bookmark"></use></svg>
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ template "post-tag" dict "name" $name "page" . }}
|
2021-11-20 13:36:26 +00:00
|
|
|
</span>
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ else }}
|
2023-07-05 19:48:39 +00:00
|
|
|
<span class="flex align-center gblog-post__meta--tag">
|
2022-02-06 23:10:30 +00:00
|
|
|
{{ template "post-tag" dict "name" $name "page" . }}
|
|
|
|
</span>
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ end }}
|
2021-11-20 13:36:26 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ $tc = (add $tc 1) }}
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ end }}
|
2021-11-20 13:36:26 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "post-tag" }}
|
2022-01-29 13:38:08 +00:00
|
|
|
<span class="gblog-post__tag gblog-button gblog-button--regular">
|
2021-12-30 14:55:55 +00:00
|
|
|
<a
|
|
|
|
class="gblog-button__link"
|
|
|
|
href="{{ .page.RelPermalink }}"
|
|
|
|
title="All posts tagged with '{{ .name }}'"
|
|
|
|
>
|
2022-01-08 12:45:19 +00:00
|
|
|
{{ .name }}
|
|
|
|
</a>
|
2021-12-30 14:55:55 +00:00
|
|
|
</span>
|
2021-11-20 13:36:26 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "post-author" }}
|
2022-01-29 13:38:08 +00:00
|
|
|
<span class="gblog-post__tag gblog-button gblog-button--regular">
|
2022-01-08 12:45:19 +00:00
|
|
|
<a class="gblog-button__link" href="{{ .page.RelPermalink }}" title="All posts of this author">
|
|
|
|
{{ .name }}
|
|
|
|
</a>
|
2021-12-30 14:55:55 +00:00
|
|
|
</span>
|
2021-11-20 13:36:26 +00:00
|
|
|
{{ end }}
|