2021-10-09 18:08:27 -05:00
|
|
|
{{ if or .Date (.GetTerms "tags") }}
|
|
|
|
<div class="post-metadata">
|
|
|
|
{{ if .Date }}
|
|
|
|
|
2021-10-09 22:33:18 -05:00
|
|
|
<span class="post-meta-item">
|
2021-10-09 18:08:27 -05:00
|
|
|
{{ partial "icon.html" "calendar" }}
|
|
|
|
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
|
|
|
|
{{ .Date.Format "January 2, 2006" }}
|
|
|
|
</time>
|
|
|
|
|
|
|
|
{{ if ne .Lastmod .Date }}
|
|
|
|
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
|
|
|
|
(Modified {{ .Lastmod.Format "January 2, 2006" }})
|
|
|
|
</time>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
|
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-09 18:08:27 -05:00
|
|
|
{{ partial "icon.html" "type" }}
|
|
|
|
{{ .WordCount }} words
|
|
|
|
</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-09 18:44:36 -05:00
|
|
|
{{ partial "icon.html" "clock" }}
|
|
|
|
{{ .ReadingTime }} {{ if gt .ReadingTime 1 }} mins {{ else }} min {{ end }}
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
2021-10-09 18:08:27 -05:00
|
|
|
|
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-09 22:17:24 -05:00
|
|
|
{{ partial "icon.html" "git-commit" }}
|
|
|
|
<a href="{{ (printf "%s/commit/%s" $.Site.Params.repoURL .Hash) | absURL }}">
|
|
|
|
<code>{{ .AbbreviatedHash }}</code>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
|
2021-10-09 22:33:18 -05:00
|
|
|
<div class="tags">
|
|
|
|
{{ range (.GetTerms "tags") }}
|
|
|
|
<span class="post-meta-item">
|
|
|
|
{{ partial "icon.html" "tag" }}
|
|
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2021-10-09 18:08:27 -05:00
|
|
|
</div>
|
|
|
|
{{ end }}
|