squirrel/layouts/partials/team.html

46 lines
1.8 KiB
HTML
Raw Permalink Normal View History

{{- $team := .team }}
2022-06-27 14:09:44 +00:00
{{- $pages := .pages}}
{{- $defaultimage := .defaultimage}}
{{- $odd := .odd }}
2022-06-27 14:09:44 +00:00
{{- $id := "team"}}
{{if $team.id}}
{{- $id = $team.id}}
2022-06-27 14:09:44 +00:00
{{else if .id}}
{{- $id = .id }}
2022-06-27 14:09:44 +00:00
{{end}}
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}}">
2021-02-25 21:23:58 +00:00
<div class="section-content team">
<div class="title">
<h1 class="content-title">{{ $team.title }}</h1>
<div class="divider"></div>
</div>
2022-06-27 14:09:44 +00:00
<div class="team-list">
{{- range first 4 ((where $pages "Params.leaveDate" "==" nil).ByParam "startDate") }}
2022-06-27 14:09:44 +00:00
<a href="{{.Permalink}}">
<div class="teammember">
{{ if .Params.image }}
2022-07-08 15:35:15 +00:00
<img class="avatar" src="{{ .Params.image }}" alt="{{ .Params.name }} Avatar">
2022-06-27 14:09:44 +00:00
{{ else }}
2022-07-08 15:35:15 +00:00
<img class="avatar" src="{{ $defaultimage }}" alt="Default Avatar">
2022-06-27 14:09:44 +00:00
{{ end }}
<h1 class="teammember-title">{{ .Params.name }}</h1>
{{- range .Params.jobs }}
<p>{{ . }}</p>
{{- end }}
<div class="social-media">
<span>
{{- range .Params.social}}
<a href="{{ .url }}"><i class="icon-{{ .type }}"></i></a>
2022-06-27 14:09:44 +00:00
{{- end}}
{{if .Params.mail}}
<a href="mailto:{{ .Params.mail }}"><i class="icon-at"></i></a>
2022-06-27 14:09:44 +00:00
{{end}}
</span>
</div>
</div>
</a>
2021-02-25 21:23:58 +00:00
{{- end }}
</div>
2022-06-27 14:09:44 +00:00
<div class="more-button"><a href="{{ $team.id }}"> {{ $team.moretext }} </a></div>
2021-02-25 21:23:58 +00:00
</div>
</div>