mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-05 00:15:59 -06:00
58 lines
1.7 KiB
HTML
58 lines
1.7 KiB
HTML
{{ if or .GitInfo .Date (.GetTerms "tags") }}
|
|
<div class="post-metadata">
|
|
{{ if .Date }}
|
|
<span class="post-meta-item">
|
|
{{ partialCached "icon.html" "calendar" "calendar" }}
|
|
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
|
|
{{ i18n "long_date" (dict "Date" .Date "Data" .Site.Data) }}
|
|
</time>
|
|
</span>
|
|
|
|
{{ if not .Site.Params.repoURL }}
|
|
{{ if ne .Lastmod .Date }}
|
|
<span class="post-meta-item">
|
|
{{ partialCached "icon.html" "edit-2" "edit-2" }}
|
|
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
|
|
{{ i18n "long_date" (dict "Date" .Lastmod "Data" .Site.Data) }}
|
|
</time>
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ if .Site.Params.wordcount }}
|
|
<span class="post-meta-item">
|
|
{{ partialCached "icon.html" "type" "type" }}
|
|
{{ i18n "wordcount" .WordCount }}
|
|
</span>
|
|
{{ end }}
|
|
|
|
{{ if .Site.Params.readingtime }}
|
|
<span class="post-meta-item">
|
|
{{ partialCached "icon.html" "clock" "clock" }}
|
|
{{ i18n "readingtime" .ReadingTime }}
|
|
</span>
|
|
{{ end }}
|
|
|
|
{{ if .Site.Params.repoURL }}
|
|
{{ with .GitInfo }}
|
|
<span class="post-meta-item">
|
|
{{ partialCached "icon.html" "git-commit" "git-commit" }}
|
|
<a href="{{ (printf "%s/commit/%s" $.Site.Params.repoURL .Hash) | absLangURL }}">
|
|
<code>{{ .AbbreviatedHash }}</code>
|
|
</a>
|
|
</span>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
<div class="tags">
|
|
{{ range (.GetTerms "tags") }}
|
|
<span class="post-meta-item">
|
|
{{ partialCached "icon.html" "tag" "tag" }}
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
|
</span>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|