mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Small tweaks to post-metadata partial
This commit is contained in:
parent
b87f6dd884
commit
21180991c0
@ -1,18 +1,13 @@
|
||||
{{ if or .Date .IsTranslated .Site.Params.wordcount .Site.Params.readingtime .Site.Params.repoURL }}
|
||||
{{ if or .Date .IsTranslated .Site.Params.readingtime .Site.Params.repoURL }}
|
||||
<div class="post-metadata">
|
||||
{{ if .Date }}
|
||||
<span class="post-meta-item">
|
||||
{{ partial "icon.html" "calendar" }}
|
||||
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
|
||||
{{ i18n "long_date" (dict "Date" .Date "Data" .Site.Data) }}
|
||||
</time>
|
||||
</span>
|
||||
|
||||
{{ $gitinfo := false }}
|
||||
{{ with .GitInfo }}
|
||||
{{ $gitinfo = true }}
|
||||
{{ end }}
|
||||
|
||||
{{/* TODO: make this be a tooltip */}}
|
||||
{{ if ne (time.Format "2006-01-02" .Lastmod) (time.Format "2006-01-02" .Date) }}
|
||||
<span class="post-meta-item">
|
||||
|
Loading…
Reference in New Issue
Block a user