diff --git a/plugs/template/page.ts b/plugs/template/page.ts index b7c623eb..471ce690 100644 --- a/plugs/template/page.ts +++ b/plugs/template/page.ts @@ -112,6 +112,7 @@ async function instantiatePageTemplate( const { frontmatter } = await renderTemplate( templateText, tempPageMeta, + { page: tempPageMeta }, ); let frontmatterConfig: FrontmatterConfig; @@ -175,6 +176,7 @@ async function instantiatePageTemplate( const { text: pageText, renderedFrontmatter } = await renderTemplate( templateText, tempPageMeta, + { page: tempPageMeta }, ); let fullPageText = renderedFrontmatter ? "---\n" + renderedFrontmatter + "---\n" + pageText diff --git a/plugs/template/snippet.ts b/plugs/template/snippet.ts index 37fcec9c..603d23ed 100644 --- a/plugs/template/snippet.ts +++ b/plugs/template/snippet.ts @@ -39,6 +39,7 @@ export async function insertSnippetTemplate(slashCompletion: SlashCompletion) { await renderTemplate( templateText, pageObject, + { page: pageObject }, ); let snippetTemplate: SnippetConfig; try {