Verbeterde weergave sprekers
This commit is contained in:
parent
06e0bf0160
commit
1ec637828e
|
@ -6,11 +6,10 @@
|
||||||
<div>
|
<div>
|
||||||
{{ $count := .Params.speakers | len }}
|
{{ $count := .Params.speakers | len }}
|
||||||
<h2>{{ i18n "speaker" (dict "Count" $count) | strings.FirstUpper }}</h2>
|
<h2>{{ i18n "speaker" (dict "Count" $count) | strings.FirstUpper }}</h2>
|
||||||
{{ range $person := .Params.speakers }}
|
<section>
|
||||||
{{ with (index site.Data.personen $person) }}
|
{{ .Scratch.Set "related_speakers" .Params.speakers }}
|
||||||
{{ partial "show-image-of-person.html" (dict "context" . "profile_details" . "add_link_to_image" true) }}
|
{{ partial "show-speakers-small.html" . }}
|
||||||
{{ end }}
|
</section>
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
13
themes/nluug/layouts/partials/show-speakers-small.html
Normal file
13
themes/nluug/layouts/partials/show-speakers-small.html
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<div class="grid-team-members-small-photos">
|
||||||
|
{{ range $key,$val := .Scratch.Get "related_speakers" }}
|
||||||
|
{{ with (index $.Site.Data.personen .) }}
|
||||||
|
<div>
|
||||||
|
{{ if .thumbnail }}
|
||||||
|
{{ $image := replace .thumbnail "200x200" "150x150" }}
|
||||||
|
{{ $alttext := printf "Foto van %s" .name }}
|
||||||
|
{{ partial "show-image.html" (dict "context" . "image" $image "alt" $alttext "figcaption" .name "link" .profile_page) }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
Reference in a new issue