Process handlebars in frontmatter for slash templates too

This commit is contained in:
Zef Hemel
2023-11-14 09:51:36 +01:00
parent 7fec3fe587
commit b86d45880a
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -31,6 +31,9 @@ export async function renderTemplate(
} else {
frontmatterText = await YAML.stringify(frontmatter.frontmatter);
}
frontmatterText = await handlebars.renderTemplate(frontmatterText, data, {
page: pageMeta,
});
}
return {
frontmatter: frontmatterText,