squirrel/layouts/team/list.html

36 lines
1.1 KiB
HTML
Raw Normal View History

2022-06-27 16:09:44 +02:00
{{ define "main" }}
<div class="team content">
<article>
{{ partial "components/title.html" .Title }}
{{.Content}}
</article>
<div class="list">
{{ range (where .Pages "Params.leaveDate" "==" nil).ByParam "startDate" }}
<div class="member">
<a href="{{.Permalink}}">
{{ if .Params.image }}
{{- partial "components/image.html" (dict "style" "avatar" "url" .Params.image "alt" .Params.name) -}}
{{ else }}
{{- partial "components/image.html" (dict "style" "avatar" "url" $.Site.Params.defaultimage "alt" "Placeholder") -}}
2022-06-27 16:09:44 +02:00
{{ end }}
<h1 class="title">{{ .Params.name }}</h1>
{{- range .Params.jobs }}
<p>{{ . }}</p>
{{- end }}
</a>
<div class="social-media">
<span>
{{- range .Params.social }}
{{ partial "components/icon.html" . }}
{{- end }}
{{if .Params.mail}}
{{ partial "components/icon.html" (dict "type" "at" "url" (printf "mailto:%s" .Params.mail) ) }}
{{end}}
</span>
</div>
2022-06-27 16:09:44 +02:00
</div>
{{ end }}
</div>
2022-06-27 16:09:44 +02:00
</div>
{{ end }}