Skip to content

Move title, opengraph metadata rendering to template partials#127

Open
wandernauta wants to merge 6 commits into
berthubert:mainfrom
wandernauta:pagemeta
Open

Move title, opengraph metadata rendering to template partials#127
wandernauta wants to merge 6 commits into
berthubert:mainfrom
wandernauta:pagemeta

Conversation

@wandernauta
Copy link
Copy Markdown
Contributor

This removes the pagemeta and og required keys, and instead uses template inheritance to compute the page title and OpenGraph metadata for each page, depending on which partial is being rendered.

Besides making tkserv.cc a bit shorter, this has the following benefits:

  • Views that use the doTemplate function (Commissies, Kamerstukdossiers, etc) can now set a proper title.
  • The "OpenTK" suffix is now consistently applied to the page title.
  • When improving the page title or OpenGraph metadata, it is no longer necessary to recompile tkserv.

This removes the `pagemeta` required key and instead uses template
inheritance to compute a page title depending on which partial is being
rendered. This has the following benefits:

- Views that use doTemplate (Commissies, Kamerstukdossiers, etc) can now
  set a proper title.
- The "- OpenTK" suffix is now consistently applied.

The OpenGraph metadata is not touched.
@wandernauta wandernauta changed the title move title, opengraph metadata rendering to template partials Move title, opengraph metadata rendering to template partials May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant