From 6489fba4696b2d84a206822194313f0514ac2df3 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 1 Feb 2024 15:16:45 +0100 Subject: [PATCH] Toevoegen partial om sponsoren te tonen onder een evenement --- .../layouts/partials/include-event-sponsors.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 themes/nluug/layouts/partials/include-event-sponsors.html diff --git a/themes/nluug/layouts/partials/include-event-sponsors.html b/themes/nluug/layouts/partials/include-event-sponsors.html new file mode 100644 index 0000000..5d8cc15 --- /dev/null +++ b/themes/nluug/layouts/partials/include-event-sponsors.html @@ -0,0 +1,13 @@ +{{ range $key,$val := .Scratch.Get "event_sponsors" }} + {{ with (index $.Site.Data.sponsoren .) }} +
+ {{ .name }} + {{ if .icon_small }} + {{ $alttext := printf "Logo van %s" .name }} + {{ if .url }}{{ end }} + {{ partial "show-image.html" (dict "context" . "image" .icon_small "alt" $alttext) }} + {{ if .url }}{{ end }} + {{ end }} +
+ {{ end }} +{{ end }}