mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Fix lastmod displaying & show even when GitInfo is enabled
This commit is contained in:
parent
f86aa30100
commit
b9879729bf
@ -13,8 +13,8 @@
|
||||
{{ $gitinfo = true }}
|
||||
{{ end }}
|
||||
|
||||
{{ if not $gitinfo }}
|
||||
{{ if ne .Lastmod .Date }}
|
||||
{{/* 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">
|
||||
{{ partial "icon.html" "pencil" }}
|
||||
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
|
||||
@ -23,7 +23,6 @@
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.authors }}
|
||||
<span class="post-meta-item">
|
||||
|
Loading…
Reference in New Issue
Block a user