aboutsummaryrefslogtreecommitdiff
path: root/layouts/post
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/post')
-rw-r--r--layouts/post/single.html2
-rw-r--r--layouts/post/summary.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html
index da83b70..7960c64 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -6,7 +6,7 @@
<h1 class="post-title">{{ .Title }}</h1>
<div class="post-meta">
- <span class="post-time"> {{ .Date.Format "2006-01-02" }} </span>
+ <span class="post-time"> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} </span>
{{ with .Params.categories -}}
<div class="post-category">
{{ range . -}}
diff --git a/layouts/post/summary.html b/layouts/post/summary.html
index 2cdb7b3..be4366b 100644
--- a/layouts/post/summary.html
+++ b/layouts/post/summary.html
@@ -3,7 +3,7 @@
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="{{ .URL }}">{{ .Title }}</a></h1>
<div class="post-meta">
- <span class="post-time"> {{ .Date.Format "2006-01-02" }} </span>
+ <span class="post-time"> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} </span>
{{ with .Params.categories -}}
<div class="post-category">
{{ range . -}}