Single layout show date rage if supplied, fix figcaption right alignment

This commit is contained in:
Justin Nguyen
2020-12-22 19:50:54 -08:00
parent 6bcb416dbf
commit 50b7892a15
7 changed files with 11 additions and 7 deletions

View File

@@ -5,7 +5,11 @@
<div class="post-meta">
{{ if .Params.Date }}
<span class="post-date">
{{ .Date.Format "01-02-2006" }} {{ if $.Site.Params.showLastUpdated }}[{{or $.Site.Params.updatedDatePrefix "Updated"}}: {{ .Lastmod.Format "2006-01-02" }}]{{ end }}
{{ with .Params.daterange }}
{{ . }}
{{ else }}
{{ .Date.Format "01-02-2006" }} {{ if $.Site.Params.showLastUpdated }}[{{or $.Site.Params.updatedDatePrefix "Updated"}}: {{ .Lastmod.Format "2006-01-02" }}]{{ end }}
{{ end }}
</span>
{{ end }}
{{ with .Params.Author }}