From 9abdfd5630218a03074c309e6b93a72e1db56885 Mon Sep 17 00:00:00 2001 From: pintergreg Date: Wed, 19 Feb 2025 12:44:58 +0100 Subject: [PATCH] Make title, content, and button optional --- layouts/partials/picture.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/layouts/partials/picture.html b/layouts/partials/picture.html index 835f66b..abe15be 100644 --- a/layouts/partials/picture.html +++ b/layouts/partials/picture.html @@ -3,10 +3,16 @@
-

{{ .title }}

-

{{ .content }}

+ {{ with .title }} +

{{ . }}

+ {{ end }} + {{ with .content }} +

{{ . }}

+ {{ end }} + {{ with .button }} + {{ end }}