Next-gen group website, built from metadata
  • HTML 97.7%
  • Python 1.1%
  • JavaScript 0.6%
  • Jinja 0.5%
  • CSS 0.1%
Find a file
Stephan Heunis 066c879dfe
Some checks failed
Deploy on webserver / Build site and deploy on success (push) Failing after 1s
New approach to extracting publication data and filtering/searching it
This commit introduces the process for individual publication term page
generation, which includes a new jinja template and workflow. Since
'publications' is a taxonomy, the workflow renders the term page at
'content/publications/pub-pid/_index.md'. For the same reason, the
(more) correct html template to use would be 'publications/taxonomy.html'
instead of 'publications/list.html' (which is actually the fallback),
hence the replacement.

Since, individual publication metadata are included in each individual
term page front matter, the taxonomy page has been updated to grab that
metadata instead of reading the json object from 'data/publications.json'.
This also allows the associated workflow to be dropped.

A new 'publication-item' partial is introduced to allow better control
over the rendering of individual items in the publication list on the
taxonomy page. This intentionally shifts the rendering that was previously
done in JS code to Hugo templating. Because hugo only runs the rendering
on app build, the searching/filtering approach had to be changed so that
all publications are rendered by default and required items are hidden
depending on the filtering options selected or search terms entered.
This is done in updated JS code, by assigning 'display: none' when
applicable. Other JS additions include:
- adding a count of filtered items
- a new 'Clear all' button for clearing filters
- allowing Topic pills to be clicked in order to add filter options

TODO: customize the publications term page template for improved individual
publication display.
2026-04-13 10:53:44 +02:00
.datalad [DATALAD] new dataset 2025-10-31 08:12:07 +01:00
.forgejo New approach to extracting publication data and filtering/searching it 2026-04-13 10:53:44 +02:00
archetypes [DATALAD RUNCMD] chore: initialize site 2025-10-31 09:12:23 +01:00
assets chore: update css 2026-03-09 20:04:39 +01:00
code Use generalized person-depiction-distribution-url script from knowledge-enrichment repo 2026-03-31 11:39:40 +02:00
config/_default html template, code, and styling to render a custom publications page 2026-03-30 15:38:25 +02:00
content New approach to extracting publication data and filtering/searching it 2026-04-13 10:53:44 +02:00
data chore: auto-generate content from metadata 2026-04-01 11:40:22 +00:00
layouts New approach to extracting publication data and filtering/searching it 2026-04-13 10:53:44 +02:00
page_templates New approach to extracting publication data and filtering/searching it 2026-04-13 10:53:44 +02:00
static New approach to extracting publication data and filtering/searching it 2026-04-13 10:53:44 +02:00
themes Register congo theme as a submodule 2025-10-31 08:22:12 +01:00
.gitattributes chore: import placeholder and basic CSS for old member page 2026-02-24 12:00:22 +01:00
.gitignore chore: git(-annex) setup 2025-10-31 09:12:23 +01:00
.gitmodules Register congo theme as a submodule 2025-10-31 08:22:12 +01:00
package.json chore: tooling to tailor CSS 2026-02-24 12:00:22 +01:00
README.md doc: start README 2025-10-31 09:12:23 +01:00

Metadata-based website of the Psychoinformatics group

This website is using hugo to build site content that is (mostly) pulled from a metadata system, using a formal metadata model for all content.

This repository should not see any manual content edits. All custom editing is constraint to the presentation (looks/style). Content changes are exclusively done via editing the respective records in the underlying metadata system.

Requirements

As per congo theme version 2.12.0 (2025-06-22), hugo 0.146.0 or later is required.

Setup notes

Hugo doesn't like symlinks (cheers windows!). Hence all files are annexed in unlocked mode (git annex config --set annex.addunlocked true).