diff options
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | layouts/partials/post-entry.html | 10 | 
2 files changed, 12 insertions, 2 deletions
| @@ -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> | 
