From c4232b6e28a9465256ee70a314ccd6659cc00eb1 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sat, 14 Dec 2019 13:31:11 +0100 Subject: #113, Hide date from posts if not specified --- layouts/posts/list.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'layouts/posts/list.html') diff --git a/layouts/posts/list.html b/layouts/posts/list.html index ad941bd..3a3eb97 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -2,13 +2,15 @@ {{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }} {{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }} {{ range sort .Paginator.Pages }} -
+

{{ .Title }}

+ {{ with .Date }}
- {{ .Date.Format $dateFormat }} + {{ .Format $dateFormat }}
+ {{ end }}

{{- .Summary -}} {{ if .Truncated }} -- cgit v1.2.3