finally, updated dates are showing

This commit is contained in:
Greg Gauthier 2021-04-11 23:12:22 +01:00
parent f71f286333
commit 535a069386

View File

@ -1,9 +1,16 @@
<div class="post-meta"> <div class="post-meta">
<div> <span>
<div style="float:left; font-size:medium; font-weight: bold;">
<i class="fa fa-calendar fa-fw"></i> <i class="fa fa-calendar fa-fw"></i>
<time>{{ with .Site.Params.dateFormat }}{{ $.Date.Format . }}{{ else }}{{ .Date.Format "02 Jan 2006, 15:04" }}{{ end }}</time> <time> {{ with .Site.Params.dateFormat }}{{ $.Date.Format . }}{{ else }}{{ .Date.Format "02 Jan 2006, 15:04 BST" }}{{ end }}</time>
</div> </div>
<div style="float:right; font-size:x-small; font-weight: bold;">
<i class="fa fa-calendar fa-fw"></i>
<time>Updated: {{ .Lastmod.Format "02 Jan 2006, 15:04" }} </time>
</div>
<br/>
</span>
{{ $baseUrl := .Site.BaseURL }} {{ $baseUrl := .Site.BaseURL }}
@ -29,7 +36,5 @@
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}
{{ .Lastmod }}
{{ end }} {{ end }}
</div> </div>