From 93477924f712bc70eae38deb3bdaf65d6558ebba Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Fri, 8 Sep 2023 20:59:37 +0200 Subject: [PATCH] [LAYOUT] Add default archive banner if no thumb.jpg image exist --- layouts/archives/li.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/layouts/archives/li.html b/layouts/archives/li.html index 4d5a086..8e330de 100644 --- a/layouts/archives/li.html +++ b/layouts/archives/li.html @@ -1,5 +1,10 @@ - + {{ $thumb := $.Page.Resources.GetMatch "thumb.jpg"}} + {{ if $thumb }} + + {{ else }} + + {{ end }}
{{ .Title }}

{{ .Description }}