From b876f5a0cd16ff7a169b02650c471045d4dabd62 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 16 Dec 2023 09:25:35 -0800 Subject: [PATCH] Move li_grid_with_date template to _default so terms and blog can use it --- layouts/{blog => _default}/li_grid_with_date.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename layouts/{blog => _default}/li_grid_with_date.html (78%) diff --git a/layouts/blog/li_grid_with_date.html b/layouts/_default/li_grid_with_date.html similarity index 78% rename from layouts/blog/li_grid_with_date.html rename to layouts/_default/li_grid_with_date.html index 57cbda7..6d477c2 100644 --- a/layouts/blog/li_grid_with_date.html +++ b/layouts/_default/li_grid_with_date.html @@ -9,7 +9,9 @@ {{ else if lt .WordCount 110 }} {{ .Content }} {{ else }} - {{ warnf "Post \"%s\" doesn't have a description or content suitable for the blog list" .Title }} + {{ if not .Draft }} + {{ warnf "Post \"%s\" doesn't have a description or content suitable for the blog list" .Title }} + {{ end }}

{{ .WordCount }} words

{{ end }}