www-from-model/content/persons
Stephan Heunis 91720317ca
All checks were successful
Deploy on webserver / Build site and deploy on success (push) Successful in 1m12s
Introduce term page template generalizations
Along the same lines as 478015 which introduced a generalization for the taxonomy list page,
this commit generalizes the term page template, so that we can remove all duplicates for
taxonomy-specific layout templates.

Several new partials are introduced that are now used in a term page heading and info section,
specifically for the date, identifiers, links, licenses, and related terms such as persons or
topics. These same partials are also worked into the existing 'taxonomy-list-vertical-item'
partial to remove further redundant code. As part of these changes, new icons were added. Also
content has to be updated to change 'date_created' to 'date' in order to streamline its handling
in the single generalized template. The associated jinja templates were also updated with this
change.

The term page layout can be customized in the same taxonomy's '_index.md' page front matter as
is done for the taxonomy list page customization. Newly introduced options are all sub-properties
of the new 'term' property under 'params':

- 'person_display': When a list of persons are rendered for a given term, what should those
  people be called? This is a string value that defaults to 'Contributors'.
- 'depiction_type': The type of depiction that should be rendered for the given term page (and
  in 'taxonomy-list-vertical-item'), if such a file exists in the term bundle. This expects a
  string that will be matched against image files in the term bundle, and will default to 'depiction'.
  This option is necessary because the depiction registration workflow saves depiction files with
  names representing their types, e.g. 'portrait', 'logo', etc.
- 'show_relations': In which format should term relations be displayed at the bottom of the term page,
  if at all. The default is to display no relations (explicitly: 'none'). Other options include
  'expandable', which will show list of expandable taxonomy groups, each group containing all terms of
  that taxonomy that relate to the current term; and 'congo', which will render the Congo-theme default
  list of related terms.

Here are two example configurations for the term options:

'content/persons/_index.md':
---
title: Persons
params:
  term:
    depiction_type: portrait # portrait | logo | depiction (default)
    show_relations: expandable # expandable | congo | none (default)
---

'content/publications/_index.md':
---
title: Publications
params:
  term:
    person_display: Authors # defaults to 'Contributors'
---

Finally, new config is added to several taxonomy index pages to perform these customizations for terms:
- persons: should render the 'portrait' depiction type and show expandable relations
- publications: display persons as 'Authors'
- instruments: should render the 'logo' depiction type
2026-05-31 23:56:10 +02:00
..
adina-wagner chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
alex-waite chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
ayan-sengupta chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
benjamin-poldrack chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
christian-haeusler chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
christian-moench chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
daniel-kottke chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
emanuele-porcu chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
falko-kaule chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
jenna-swarthout-goddard chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
laura-waite chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
leonardo-muller-rodriguez chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
malgorzata-wierzba chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
manuel-bayer chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
michael-burgardt chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
michael-hanke chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
michael-notter chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
michal-szczepanik chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
moritz-boos chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
odelfa-songong chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
pierre-ibe chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
richard-dinga chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
stephan-heunis chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
sven-buchholz chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
tosca-heunis chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
venkatesh-hariharapura-shivashankar chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
vittorio-iacovella chore: auto-generate content from metadata 2026-05-19 04:29:10 +00:00
_index.md Introduce term page template generalizations 2026-05-31 23:56:10 +02:00