www-from-model/content/datasets
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
..
1d8ec87e-a9f6-42ea-b181-c3025ee26a9f chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
3c0a0936-4edd-4f3b-b456-10cb519cfb82 chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
6ac48b8c-c971-4c9f-be9c-be6e8480b724 chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
7bc5fde2-a4c8-4ece-92fe-f071b1cd299b chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
32fcb84f-cc11-4793-bac8-1f7366c9f15d chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
53c9a7f9-316d-4ea5-ab97-fd49936bf6b0 chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
67db1ba6-3432-4b5a-9ede-25767f5dcc12 chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
913f61f2-0197-4b16-98b7-6d0080df3bf9 chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
935fe44d-4ab1-4838-891f-6fc1fa81de42 chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
1646e2e6-0d08-49ee-a1d3-4ebc342c73f6 chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
a5b1159c-97c9-4916-9a25-7fb3ac6f4c6b chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
a411cf09-a111-4cf0-b3ae-e3dba11d37d6 chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
e511f0bb-9baf-4c29-88e0-079836868273 chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
edfbe285-a991-4abc-9c87-4b8c41b65b8a chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
studyforrest chore: auto-generate content from metadata 2026-05-26 09:25:51 +00:00
_index.md Layout template generalization 2026-05-28 12:23:50 +02:00