2021-11-13 17:04:10 -06:00
|
|
|
{{ if or .Date .Params.authors .IsTranslated .Site.Params.readingtime .Site.Params.gitFileURL }}
|
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-11-13 17:04:10 -06:00
|
|
|
{{ partial "authors-meta-item.html" . }}
|
|
|
|
{{ partial "translations-meta-item.html" . }}
|
|
|
|
{{ partial "readingtime-meta-item.html" . }}
|
|
|
|
{{ partial "viewsource-meta-item.html" . }}
|
|
|
|
{{ partial "tags-meta-item.html" . }}
|
2021-10-09 18:08:27 -05:00
|
|
|
</div>
|
|
|
|
{{ end }}
|