CHANGE team list: Make number of team members on front page configurable
This commit is contained in:
parent
9b6557bb0c
commit
e21c1e2182
3 changed files with 32 additions and 23 deletions
|
@ -1,19 +1,19 @@
|
|||
{{ define "main" }}
|
||||
<div class="content">
|
||||
<div class="team content">
|
||||
<article>
|
||||
{{ partial "components/title.html" .Title }}
|
||||
{{.Content}}
|
||||
</article>
|
||||
<div class="team-list">
|
||||
<div class="list">
|
||||
{{ range (where .Pages "Params.leaveDate" "==" nil).ByParam "startDate" }}
|
||||
<a href="{{.Permalink}}">
|
||||
<div class="teammember">
|
||||
<div class="member">
|
||||
{{ 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") -}}
|
||||
{{ end }}
|
||||
<h1 class="teammember-title">{{ .Params.name }}</h1>
|
||||
<h1 class="title">{{ .Params.name }}</h1>
|
||||
{{- range .Params.jobs }}
|
||||
<p>{{ . }}</p>
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue