From 2e30077cb6e9a21f9eb33a612a53c464a41f3760 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 13 Apr 2024 13:46:47 +0200 Subject: [PATCH] Add banner image if available --- layouts/_default/single.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c64e2fb..6c110e9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,6 +2,10 @@
{{ .Title }}
+ {{- if isset .Params "banner" -}} + {{ $image := resources.Get .Params.banner }} + + {{- end -}}
{{- if isset .Params "date" -}} {{ if eq .Lastmod .Date }}