diff options
-rw-r--r-- | layouts/_default/single.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d7101bf..6932616 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,9 +12,18 @@ </div> <div class="Subhead-description"> {{ partial "taxonomy.html" . }} + + {{ if ( default true .Params.showDate ) }} <div class="float-md-right"> - <span>{{ .Date.Format "2006-01-01" }}</span> + <span title="Lastmod: {{ .Lastmod.Format "2006-01-01" }}. Published at: {{ .PublishDate.Format "2006-01-01" }}."> + {{ if ne .Lastmod .PublishDate }} + Lastmod: {{ dateFormat ( default "2006-01-01" .Site.Params.dateFormat ) .Lastmod }} + {{ else }} + Published: {{ dateFormat "2006-01-01" .PublishDate }} + {{ end }} + </span> </div> + {{ end }} </div> </div> <article> |