The contributor generator (person.py in q02/pool-publication-page) already writes `active: false` into a person's front matter once the defined end date of their project association in the knowledge pool has passed. The redesigned contributors page had stopped evaluating that flag, so former members were listed among the current ones. Contributors are now split into a current grid and a "Retired" section below it, plus a "Retired" filter button that is only rendered when somebody actually is retired. Both grids hide themselves when a filter leaves them empty. Card markup moved into a partial so the two grids cannot drift apart. Contributors carrying no `active` flag at all (those without any project association) count as current — a missing flag means "never evaluated", not "ended". Also fixes the German page, which rendered bare taxonomy terms (slug names, no portraits, no metadata) because the person records only exist as English content files: it now uses the same layout and page set. And the section illustration is resolved through the page bundle, since a bare "people.png" resolves to /de/contributors/people.png and 404s. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
21 lines
902 B
HTML
21 lines
902 B
HTML
{{/* One contributor tile. Context: a contributor page.
|
|
|
|
Used by layouts/contributors/list.html for both the current-members grid
|
|
and the retired grid, so the two stay in sync. */}}
|
|
{{ $portrait := .Resources.GetMatch "*portrait*" }}
|
|
{{ $roles := delimit (.Params.roles | default slice) " " }}
|
|
<a class="contributor-card" href="{{ .Permalink }}" data-roles="{{ $roles }}">
|
|
<div class="contributor-portrait">
|
|
{{ with $portrait }}
|
|
<img src="{{ (.Fill "300x300 Center").RelPermalink }}" alt="{{ $.Title }}">
|
|
{{ else }}
|
|
<div class="contributor-placeholder">
|
|
<span>{{ substr .Title 0 1 }}</span>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
<div class="contributor-name">
|
|
{{ with .Params.params }}{{ with .name_title }}<span class="contributor-title">{{ . }}</span> {{ end }}{{ end }}
|
|
{{ .Title }}
|
|
</div>
|
|
</a>
|