summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorcolorchestra <morph@posteo.de>2020-08-04 13:33:15 +0200
committercolorchestra <morph@posteo.de>2020-08-04 13:33:15 +0200
commit41db6a77dc71c5a730ec18fe02080ffe9aa06bb8 (patch)
tree3819bf171c964d846a7e68ae459659d3fec0b7b1 /layouts/_default
parent730ddd9a1f0655d0c5cfe6c0b4086cc5b5df0d4b (diff)
add dateFmt option to single and summary views
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/_default/summary.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 1de478c..b334487 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,7 +2,7 @@
<main>
<article>
<h1>{{ .Title }}</h1>
- <b><time>{{ .Date.Format "02.01.2006 15:04" }}</time></b>
+ <b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b>
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index 05b75a9..a347932 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -1,6 +1,6 @@
<article>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
- <b><time>{{ .Date.Format "02.01.2006 15:04" }}</time></b>
+ <b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b>
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}