2022-02-03 09:58:37 +00:00
|
|
|
<span class="flex align-center no-wrap">
|
2022-01-12 21:43:00 +00:00
|
|
|
<svg class="icon gdoc_date"><use xlink:href="#gdoc_date"></use></svg>
|
|
|
|
<span class="gdoc-post__tag">
|
|
|
|
<time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
|
|
|
{{ if .Lastmod.After (.Date.AddDate 0 0 1) }}
|
2022-01-23 12:21:44 +00:00
|
|
|
{{ i18n "posts_update_prefix" }}
|
2022-01-12 21:43:00 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ .Lastmod.Format "Jan 2, 2006" }}
|
|
|
|
</time>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
|
2022-02-03 09:58:37 +00:00
|
|
|
<span class="flex align-center no-wrap">
|
2022-01-12 21:43:00 +00:00
|
|
|
<svg class="icon gdoc_timer"><use xlink:href="#gdoc_timer"></use></svg>
|
2022-01-23 12:21:44 +00:00
|
|
|
<span class="gdoc-post__tag">{{ i18n "posts_read_time" .ReadingTime }}</span>
|
2022-01-12 21:43:00 +00:00
|
|
|
</span>
|
|
|
|
|
|
|
|
{{ $tc := 0 }}
|
|
|
|
{{ with .Params.tags }}
|
|
|
|
{{ range sort . }}
|
|
|
|
{{ $name := . }}
|
|
|
|
{{ with $.Site.GetPage (printf "/tags/%s" $name | urlize) }}
|
|
|
|
{{ if eq $tc 0 }}
|
2022-02-03 09:58:37 +00:00
|
|
|
<span class="flex align-center no-wrap">
|
2022-01-12 21:43:00 +00:00
|
|
|
<svg class="icon gdoc_bookmark"><use xlink:href="#gdoc_bookmark"></use></svg>
|
|
|
|
{{ template "post-tag" dict "name" $name "page" . }}
|
|
|
|
</span>
|
|
|
|
{{ else }}
|
|
|
|
{{ template "post-tag" dict "name" $name "page" . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ $tc = (add $tc 1) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "post-tag" }}
|
2022-02-03 09:58:37 +00:00
|
|
|
<span class="gdoc-post__tag gdoc-button gdoc-button--regular">
|
2022-01-12 21:43:00 +00:00
|
|
|
<a
|
|
|
|
class="gdoc-button__link"
|
|
|
|
href="{{ .page.RelPermalink }}"
|
2022-02-07 10:53:45 +00:00
|
|
|
title="{{ i18n "posts_tagged_with" .name }}"
|
2022-01-12 21:43:00 +00:00
|
|
|
>
|
|
|
|
{{ .name }}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|