Toevoegen van sprekersprofielen, link naar sprekersprofiel, toevoegen sprekers voorjaarsconferentie
This commit is contained in:
parent
58548063be
commit
825d9f2b57
22 changed files with 55 additions and 38 deletions
|
@ -3,13 +3,13 @@
|
|||
<div>{{ .Content }}</div>
|
||||
|
||||
|
||||
{{ if .Params.persons }}
|
||||
{{ if .Params.speakers }}
|
||||
<div>
|
||||
{{ $count := .Params.persons | len }}
|
||||
{{ $count := .Params.speakers | len }}
|
||||
<h2>{{ i18n "speaker" (dict "Count" $count) | strings.FirstUpper }}</h2>
|
||||
{{ range $person := .Params.persons }}
|
||||
{{ range $person := .Params.speakers }}
|
||||
{{ with (index site.Data.personen $person) }}
|
||||
{{ partial "show-image-of-person.html" (dict "context" . "profile_details" . "hide_figcaption" true) }}
|
||||
{{ partial "show-image-of-person.html" (dict "context" . "profile_details" . "add_link_to_image" true) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
{{ range $key,$val := $.Site.Data.personen }}
|
||||
{{ if eq $val.speaker true }}
|
||||
<h3>» {{ .name }}</h3>
|
||||
{{ partial "show-image-of-person.html" (dict "context" . "profile_details" $val "hide_figcaption" true) }}
|
||||
{{ partial "show-image-of-person.html" (dict "context" . "profile_details" $val "hide_figcaption" true "add_link_to_image" true) }}
|
||||
{{ $firstname := index (split .name " ") 0 }}
|
||||
{{ if .profile_page }}<a href="{{ .profile_page }}">Meer over {{ $firstname }}</a>{{ end }}
|
||||
{{ if not .profile_page }}<small>Deze spreker heeft nog geen profielpagina</small>{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
|
||||
{{ if .profile_details }}
|
||||
<div>
|
||||
{{ if .profile_details.thumbnail }}
|
||||
{{ $image := replace .profile_details.thumbnail "200x200" "150x150" }}
|
||||
{{ $alttext := printf "Foto van %s" .profile_details.name }}
|
||||
{{ if and (.add_link_to_image) (.profile_details.profile_page) }}<a href="{{ .profile_details.profile_page }}">{{ end }}
|
||||
{{ partial "show-image.html" (dict "context" . "image" $image "alt" $alttext) }}
|
||||
{{ if and (.add_link_to_image) (.profile_details.profile_page) }}</a>{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,23 +1,37 @@
|
|||
{{ define "main" }}
|
||||
{{ $text := .Content }}
|
||||
{{ with (index .Site.Data.personen (substr $.File.LogicalName 0 -3)) }}
|
||||
{{ $personid := .id }}
|
||||
{{ if .thumbnail }}<img src="{{ .thumbnail }}" alt="Foto van {{ .name }}">{{ end }}
|
||||
{{ $text }}
|
||||
<h3>Contact</h3>
|
||||
<ul>
|
||||
{{ if .email }}<li>E-mail: {{ .email }}</li>{{ end }}
|
||||
{{ if .websites }}
|
||||
{{ range .websites }}
|
||||
<li><a href="{{ .url }}" rel="nofollow noopener">{{ .name }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ if or
|
||||
(.social.mastodon)
|
||||
(.social.twitter)
|
||||
}}
|
||||
<h3>Social media</h3>
|
||||
|
||||
{{ if .speaker }}
|
||||
<h2>Presentaties</h2>
|
||||
<ul>
|
||||
{{ range where $.Site.RegularPages "Section" "evenementen" }}
|
||||
{{ if .Params.speakers }}
|
||||
{{ if in .Params.speakers $personid }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ if or (.email) (.websites) }}
|
||||
<h2>Contact</h2>
|
||||
<ul>
|
||||
{{ if .email }}<li>E-mail: {{ .email }}</li>{{ end }}
|
||||
{{ if .websites }}
|
||||
{{ range .websites }}
|
||||
<li><a href="{{ .url }}" rel="nofollow noopener">{{ .name }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
{{ if or (.social.mastodon) (.social.twitter) }}
|
||||
<h2>Social media</h2>
|
||||
|
||||
<ul class="list">
|
||||
{{ if .social.mastodon }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue