summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--layouts/partials/post-entry.html10
2 files changed, 12 insertions, 2 deletions
diff --git a/README.md b/README.md
index e4a2a0d..efa883b 100644
--- a/README.md
+++ b/README.md
@@ -155,7 +155,9 @@ homeCollection = 'posts'
# Pagination size across all website, this is the same for homepage and single list page
paginationSize = 100
# Display summaries under post list entries
-listSummaries = false
+listSummaries = true
+# List entries date format
+listDateFormat = '2 Jan 2006'
# Social icons
[[params.social]]
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>