2021-10-09 22:54:33 -05:00
|
|
|
{{ if or .GitInfo .Date (.GetTerms "tags") }}
|
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 09:52:24 -05:00
|
|
|
{{ partialCached "icon.html" "calendar" "calendar" }}
|
2021-10-09 18:08:27 -05:00
|
|
|
<time datetime="{{ .Date.Format "January 2, 2006" }}" 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-10-10 19:03:15 -05:00
|
|
|
{{ if not .Site.Params.repoURL }}
|
|
|
|
{{ if ne .Lastmod .Date }}
|
|
|
|
<span class="post-meta-item">
|
2021-10-11 09:52:24 -05:00
|
|
|
{{ partialCached "icon.html" "edit-2" "edit-2" }}
|
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 }}
|
|
|
|
{{ end }}
|
2021-10-09 18:08:27 -05:00
|
|
|
|
2021-10-09 18:44:36 -05:00
|
|
|
{{ if .Site.Params.wordcount }}
|
2021-10-09 22:33:18 -05:00
|
|
|
<span class="post-meta-item">
|
2021-10-11 09:52:24 -05:00
|
|
|
{{ partialCached "icon.html" "type" "type" }}
|
2021-10-11 18:24:14 -05:00
|
|
|
{{ i18n "wordcount" .WordCount }}
|
2021-10-09 18:08:27 -05:00
|
|
|
</span>
|
2021-10-09 18:44:36 -05:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if .Site.Params.readingtime }}
|
2021-10-09 22:33:18 -05:00
|
|
|
<span class="post-meta-item">
|
2021-10-11 09:52:24 -05:00
|
|
|
{{ partialCached "icon.html" "clock" "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-10-10 19:03:15 -05:00
|
|
|
{{ if .Site.Params.repoURL }}
|
2021-10-09 22:17:24 -05:00
|
|
|
{{ with .GitInfo }}
|
2021-10-09 22:33:18 -05:00
|
|
|
<span class="post-meta-item">
|
2021-10-11 09:52:24 -05:00
|
|
|
{{ partialCached "icon.html" "git-commit" "git-commit" }}
|
2021-10-11 18:24:14 -05:00
|
|
|
<a href="{{ (printf "%s/commit/%s" $.Site.Params.repoURL .Hash) | absLangURL }}">
|
2021-10-09 22:17:24 -05:00
|
|
|
<code>{{ .AbbreviatedHash }}</code>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
2021-10-10 19:03:15 -05:00
|
|
|
{{ end }}
|
2021-10-09 22:17:24 -05:00
|
|
|
|
2021-10-09 22:33:18 -05:00
|
|
|
<div class="tags">
|
|
|
|
{{ range (.GetTerms "tags") }}
|
|
|
|
<span class="post-meta-item">
|
2021-10-11 09:52:24 -05:00
|
|
|
{{ partialCached "icon.html" "tag" "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 }}
|