summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/post-entry.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/layouts/partials/post-entry.html b/layouts/partials/post-entry.html
index 1752768..5c89bca 100644
--- a/layouts/partials/post-entry.html
+++ b/layouts/partials/post-entry.html
@@ -1,5 +1,13 @@
<div class="post-line">
- <p class="line-date">{{ .Date.Format "2 Jan 2006" }} </p>
+
+ {{ $dateFormat := "2 Jan 2006"}}
+ {{ with .Site.Params.listDateFormat }}
+ {{ $dateFormat = .}}
+ {{ end }}
+
+
+ <p class="line-date">{{ .Date.Format $dateFormat }} </p>
+
<div>
<p class="line-title"> <a href="{{ .RelPermalink }}">{{ .Title }}</a></p>