Toevoegen partial om sponsoren te tonen onder een evenement
This commit is contained in:
parent
7d8a4f409a
commit
6489fba469
1 changed files with 13 additions and 0 deletions
13
themes/nluug/layouts/partials/include-event-sponsors.html
Normal file
13
themes/nluug/layouts/partials/include-event-sponsors.html
Normal 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 }}
|
Loading…
Reference in a new issue