mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -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 }}
|
{{ $gitinfo = true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if not $gitinfo }}
|
{{/* TODO: make this be a tooltip */}}
|
||||||
{{ if ne .Lastmod .Date }}
|
{{ if ne (time.Format "2006-01-02" .Lastmod) (time.Format "2006-01-02" .Date) }}
|
||||||
<span class="post-meta-item">
|
<span class="post-meta-item">
|
||||||
{{ partial "icon.html" "pencil" }}
|
{{ partial "icon.html" "pencil" }}
|
||||||
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
|
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
|
||||||
@ -23,7 +23,6 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ with .Params.authors }}
|
{{ with .Params.authors }}
|
||||||
<span class="post-meta-item">
|
<span class="post-meta-item">
|
||||||
|
Loading…
Reference in New Issue
Block a user