Skip to content

archetypes: modularize rendering #300

@McShelby

Description

@McShelby

Currently rendering of archetypes is duplicated for each page in the template file itself. E.g. if you create a new chapter, not only the parameters in the frontmatter are set, but also the initial headings configuraton.

This is cumbersome because

  • all information necessarry for rendering the headings are already contained in the frontmatter anyways
  • the theme becomes inflexible when changing rendering for such archetypes on the whole site
  • the archetype template needs to be translated if used with languages other than english

A better solution is, to ship default partials for each archetype.

The aim is, to have only an archetype parameter in the frontmatter and start the page off with just text or h2 headings for every archetype - regardless if it's a normal content page or a chapter page.

Metadata

Metadata

Assignees

Labels

changeIntroduces changes with existing installationsfeatureNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions