www-from-model/content/instruments
Stephan Heunis 73ae3cace6 Layout template generalization
The goal of this change is to deduplicate all custom templates that are in use for taxonomy pages.
This commit defines the entrypoint for any taxonomy list page to be the 'layouts/taxonomy.html' template,
and removes all taxonomy-specific templates (e.g. 'layouts/publications/taxonomy.html'). Per-taxonomy
page customization are now handled via new partials and with front matter configuration via 'params'.
Any given taxonomy list page can now be customized to do the following:
- show all terms vs only terms that have a metadata-generated '_index.md' page (via '.Params.title')
- list items in a grid vs list items vertically
- include vs exclude filtering functionality (inclusion assumes the vertical list layout)
- specify which filter fields to use (e.g. 'kind', 'topic', 'year'), if filtering functionality is active
- specify which fields to include in the text search functionality, if filtering functionality is active

Customization happens in the '_index.md' page of any given taxonomy content directory.
For example 'content/publications/_index.md':

---
title: Publications
params:
  list_variant: vertical # grid (default) | vertical (if filter == true, list_variant is set to vertical)
  items: generated # generated (default) | all
  filter: true # false (default) | true
  filter_fields: # no default
    - kind
    - topic
    - year
  search_fields: # default: kind, topic, year, author, title
    - kind
    - topic
    - year
    - author
    - title
---

And partials are then rendered based on this configuration.

Main configuration introduced with this commit:
- persons: grid view (default)
- objectives: grid view (default)
- projects: grid view (default)
- publications: filter view
- datasets: filter view
- instruments: filter view

The main repo README is updated with a description of this configuration and template pattern

TODO:
- add some partials for the parts that are displayed on a list item (e.g. the list of authors, the topics,
  the icon-links, etc); and perhaps also configuration variables for their inclusion/exclusion
- Improved logic for selecting depictions; the current depiction registration workflow registers files
  with names derived from the depiction kind, e.g. 'logo.png' or 'portrait.webp'. These are generally for
  different purposes, and the logic might want to prefer a specific kind for a specific taxonomy, e.g.
  'portrait' for 'persons', or 'logo' for 'instrument'.
- Update filtering-related code to make better use of hugo templating functionality; some aspects are still
  hardcoded, e.g. 'data-*' for setting the list-item data values.
- Apply similar improvements to the 'term.html' template as done above for 'taxonomy.html'
2026-05-28 12:23:50 +02:00
..
7b23e72f-3fa5-4aad-b421-a3c1eaea9718 chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
8b75c829-479e-4bc4-8354-2fdf29a7d213 chore: auto-generate content from metadata 2026-05-22 01:01:15 +00:00
35ca6b36-38a4-4caf-98bf-e696d4c7a319 chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
50fd4fb2-2e98-4beb-aa48-41dd26781fd9 chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
51b93f1f-b7aa-4422-8b36-1ec499bdde14 chore: auto-generate content from metadata 2026-05-22 01:01:15 +00:00
54be0232-d05e-4941-bfba-70716cfd6b05 chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
64c502e7-d63e-4403-8cb9-b4c60f122b0d chore: auto-generate content from metadata 2026-05-19 14:10:13 +00:00
794b80ba-cae1-4fc1-b6d2-8b56c0ff4644 chore: auto-generate content from metadata 2026-05-21 03:01:05 +00:00
03300e25-6c5f-40bd-9ed8-a12d8ec22817 chore: auto-generate content from metadata 2026-05-22 01:01:15 +00:00
b8dc8b0a-4408-46f4-9f47-c1d3ae747fac chore: auto-generate content from metadata 2026-05-19 14:10:13 +00:00
b99d514b-b86a-4e4a-933a-1724132bf486 chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
bb72fbdb-8d22-4756-a55f-313a7a6a9626 chore: auto-generate content from metadata 2026-05-19 07:13:49 +00:00
case-e chore: auto-generate content from metadata 2026-05-19 14:10:13 +00:00
datalad chore: auto-generate content from metadata 2026-05-21 03:01:05 +00:00
datalad-next chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
datasalad chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
dump-things chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
ef7e7d3f-31f3-444e-9efb-b1419e867f3e chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
f92a09a8-1579-4e3a-a205-8459524ca802 chore: auto-generate content from metadata 2026-05-22 01:01:15 +00:00
ff94c3f9-ce37-43f0-b87c-5ee0f776d845 chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
git-annex-wheel chore: auto-generate content from metadata 2026-05-19 14:10:13 +00:00
trr379_hub chore: auto-generate content from metadata 2026-05-19 14:10:13 +00:00
trr379_pool chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
trr379_pool_editor chore: auto-generate content from metadata 2026-05-18 20:26:43 +00:00
_index.md Layout template generalization 2026-05-28 12:23:50 +02:00