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

Add parentheses in date.html
This commit is contained in:
James Panther
2021-12-29 18:05:37 +11:00
committed by GitHub
+2 -2
View File
@@ -1,10 +1,10 @@
<time datetime="{{ .Date }}">
{{- .Date.Format .Site.Params.article.dateFormat | default "2 January 2006" -}}
{{- .Date.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
</time>
{{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }}
&nbsp;(Updated:&nbsp;
<time datetime="{{ .Lastmod }}">
{{- .Lastmod.Format .Site.Params.article.dateFormat | default "2 January 2006" -}}
{{- .Lastmod.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
</time>
)
{{ end }}