From 8056c37d9229becb4189ca5d1b16632745f451cb Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 22 Feb 2018 20:34:01 +0000 Subject: [PATCH] Replace zero date with hr --- layouts/posts/list.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 4920b7a..6d32848 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -5,9 +5,13 @@

{{ .Title }}

{{ range $paginator.PageGroups }} {{ $month := (print .Key "-01") }} -

- -

+ {{ if (index .Pages 0).Date.IsZero }} +
+ {{ else }} +

+ +

+ {{ end }} {{ range (sort .Pages "Date" "desc") }} {{ partial "list_item.html" . }} {{ end }}