Toevoegen partial om sponsoren te tonen onder een evenement

This commit is contained in:
Michael Boelen 2024-02-01 15:16:45 +01:00
parent 7d8a4f409a
commit 6489fba469

View file

@ -0,0 +1,13 @@
{{ range $key,$val := .Scratch.Get "event_sponsors" }}
{{ with (index $.Site.Data.sponsoren .) }}
<div>
<strong>{{ .name }}</strong>
{{ if .icon_small }}
{{ $alttext := printf "Logo van %s" .name }}
{{ if .url }}<a href="{{ .url }}" rel="nofollow">{{ end }}
{{ partial "show-image.html" (dict "context" . "image" .icon_small "alt" $alttext) }}
{{ if .url }}</a>{{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}