🔀 Merge pull request #66 from AntoineSoetewey/patch-1

Add parentheses in date.html
pull/71/head
James Panther 2021-12-29 18:05:37 +11:00 committed by GitHub
commit 514f02782a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
<time datetime="{{ .Date }}"> <time datetime="{{ .Date }}">
{{- .Date.Format .Site.Params.article.dateFormat | default "2 January 2006" -}} {{- .Date.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
</time> </time>
{{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }} {{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }}
&nbsp;(Updated:&nbsp; &nbsp;(Updated:&nbsp;
<time datetime="{{ .Lastmod }}"> <time datetime="{{ .Lastmod }}">
{{- .Lastmod.Format .Site.Params.article.dateFormat | default "2 January 2006" -}} {{- .Lastmod.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
</time> </time>
) )
{{ end }} {{ end }}