finally, updated dates are showing

This commit is contained in:
Greg Gauthier 2021-04-11 23:12:22 +01:00
parent f71f286333
commit 535a069386
1 changed files with 11 additions and 6 deletions

View File

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