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
Member

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.

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.
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
bedbe5733c
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.
jsheunis deleted branch person-hugo 2026-03-19 15:22:37 +00:00
Owner

Awesome! Let's do this!

Awesome! Let's do this!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
www/www-from-model!11
No description provided.