2021-11-13 15:22:06 -06:00
|
|
|
{{ if or .Date .IsTranslated .Site.Params.readingtime .Site.Params.repoURL }}
|
2021-10-09 18:08:27 -05:00
|
|
|
<div class="post-metadata">
|
|
|
|
{{ if .Date }}
|
2021-10-09 22:33:18 -05:00
|
|
|
<span class="post-meta-item">
|
2021-10-11 21:35:16 -05:00
|
|
|
{{ partial "icon.html" "calendar" }}
|
2021-11-13 15:22:06 -06:00
|
|
|
<time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
|
2021-10-11 18:24:14 -05:00
|
|
|
{{ i18n "long_date" (dict "Date" .Date "Data" .Site.Data) }}
|
2021-10-09 18:08:27 -05:00
|
|
|
</time>
|
2021-10-10 19:03:15 -05:00
|
|
|
</span>
|
2021-10-09 18:08:27 -05:00
|
|
|
|
2021-11-04 14:59:15 -05:00
|
|
|
{{/* TODO: make this be a tooltip */}}
|
|
|
|
{{ if ne (time.Format "2006-01-02" .Lastmod) (time.Format "2006-01-02" .Date) }}
|
2021-10-10 19:03:15 -05:00
|
|
|
<span class="post-meta-item">
|
2021-10-26 18:50:48 -05:00
|
|
|
{{ partial "icon.html" "pencil" }}
|
2021-10-09 18:08:27 -05:00
|
|
|
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
|
2021-10-11 18:24:14 -05:00
|
|
|
{{ i18n "long_date" (dict "Date" .Lastmod "Data" .Site.Data) }}
|
2021-10-09 18:08:27 -05:00
|
|
|
</time>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
2021-10-10 19:03:15 -05:00
|
|
|
{{ end }}
|
2021-10-11 20:50:09 -05:00
|
|
|
|
2021-10-27 19:39:25 -05:00
|
|
|
{{ with .Params.authors }}
|
2021-10-26 14:27:37 -05:00
|
|
|
<span class="post-meta-item">
|
2021-10-26 18:50:48 -05:00
|
|
|
{{ partial "icon.html" "user-circle" }}
|
2021-11-06 19:12:56 -05:00
|
|
|
|
|
|
|
{{ if index $.Site.Taxonomies "authors" }}
|
|
|
|
|
|
|
|
{{ $authors := slice }}
|
|
|
|
{{ range . }}
|
|
|
|
{{ $url := (printf "/authors/%s" (. | anchorize)) | absLangURL }}
|
|
|
|
{{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url . | safeHTML) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ delimit $authors ", " }}
|
|
|
|
|
|
|
|
{{ else }}
|
2021-10-27 19:51:46 -05:00
|
|
|
{{ delimit . ", " }}
|
2021-11-06 19:12:56 -05:00
|
|
|
|
|
|
|
{{ end }}
|
2021-10-26 14:27:37 -05:00
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
|
2021-10-11 20:50:09 -05:00
|
|
|
{{ if .IsTranslated }}
|
|
|
|
<span class="post-meta-item">
|
2021-10-26 18:50:48 -05:00
|
|
|
{{ partial "icon.html" "world" }}
|
2021-10-11 20:50:09 -05:00
|
|
|
{{ range .Translations }}
|
|
|
|
<a href="{{ .Permalink }}">{{ .Language }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
2021-10-09 18:08:27 -05:00
|
|
|
|
2021-10-22 23:05:51 -05:00
|
|
|
{{ if ne .Site.Params.readingtime false }}
|
2021-10-09 22:33:18 -05:00
|
|
|
<span class="post-meta-item">
|
2021-10-11 21:35:16 -05:00
|
|
|
{{ partial "icon.html" "clock" }}
|
2021-10-11 18:24:14 -05:00
|
|
|
{{ i18n "readingtime" .ReadingTime }}
|
2021-10-09 18:44:36 -05:00
|
|
|
</span>
|
|
|
|
{{ end }}
|
2021-10-09 18:08:27 -05:00
|
|
|
|
2021-11-07 16:39:17 -06:00
|
|
|
{{ with .Site.Params.gitFileURL }}
|
2021-10-09 22:33:18 -05:00
|
|
|
<span class="post-meta-item">
|
2021-11-07 16:39:17 -06:00
|
|
|
{{ with $.Site.Params.gitFileIcon }}
|
|
|
|
{{ partial "icon.html" . }}
|
|
|
|
{{ else }}
|
|
|
|
{{ partial "icon.html" "file" }}
|
|
|
|
{{ end }}
|
|
|
|
|
2021-11-02 00:47:59 -05:00
|
|
|
<a href="{{ printf "%s/content/%s" . $.File.Path }}" target="_blank" rel="noopener">
|
2021-11-07 16:39:17 -06:00
|
|
|
View source
|
2021-10-09 22:17:24 -05:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
|
2021-11-12 20:25:47 -06:00
|
|
|
{{ with .Params.series }}
|
|
|
|
<div class="series">
|
|
|
|
{{ range ($.GetTerms "series") }}
|
|
|
|
<span class="post-meta-item">
|
|
|
|
{{ partial "icon.html" "files" }}
|
|
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2021-10-09 22:33:18 -05:00
|
|
|
<div class="tags">
|
|
|
|
{{ range (.GetTerms "tags") }}
|
|
|
|
<span class="post-meta-item">
|
2021-10-11 21:35:16 -05:00
|
|
|
{{ partial "icon.html" "tag" }}
|
2021-10-09 22:33:18 -05:00
|
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2021-10-09 18:08:27 -05:00
|
|
|
</div>
|
|
|
|
{{ end }}
|