Use jinja for parameter injection and hugo template for person page #11

Merged
jsheunis merged 1 commit from person-hugo into main 2026-03-19 15:22:37 +00:00

1 commit

Author SHA1 Message Date
bedbe5733c Use jinja for parameter injection and hugo template for person page
All checks were successful
Deploy on webserver / Build site and deploy on success (push) Successful in 1m15s
This uses the new '__rec' property of 'query-things' 'render_record' command
to extract values for explicitly defined keys and inject them under 'params'
in the markdown page front matter. This makes them available to a hugo
template under '.Params'.

A new 'layouts/_default/person.html' template is now responsible for rendering
everything on a person page. This allows using hugo's bundle resources to easily
check e.g. if there is a portrait of the person in the bundle. The template
renders everything that was previously rendered from the _index.md page, and will
put the portrait and graph side by side if a portrait exists, otherwise the graph
will display full-width. A snippet from the congo theme is included at the end of
the template in order to render all taxonomy related terms.
2026-03-19 16:17:32 +01:00