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 @@
-

{{ .Date.Format "2 Jan 2006" }}

+ + {{ $dateFormat := "2 Jan 2006"}} + {{ with .Site.Params.listDateFormat }} + {{ $dateFormat = .}} + {{ end }} + + +

{{ .Date.Format $dateFormat }}

+

{{ .Title }}