Comment on page
template
Applies a template to a file.
Spignite supports the following templating engines:
- Nunjucks.
Layout resolving is part of the Spignite. Templates are resolved using the following order:
- 1.the value of
layout
attribute (from frontmatter or attributes files) - 2.using files base name
- 3.using files full name
- 4.using
base
as default layout name.
For each above step, layouts are searched for in corresponding folder and parent folders.
Last modified 3yr ago