squirrel/layouts/team/list.html

38 lines
1.4 KiB
HTML
Raw Normal View History

2022-06-27 14:09:44 +00:00
{{ define "main" }}
<div class="content">
<article>
<div class="title">
<h1 class="content-title">{{ .Title }}</h1>
<div class="divider"></div>
</div>
{{.Content}}
</article>
<div class="team-list">
{{ range (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="{{ $.Site.Params.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>
{{ end }}
</div>
</div>
{{ end }}