Fix not passing in global vars into renderTemplate
parent
d0ebda0d7a
commit
82cb0ed267
|
@ -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
|
||||
|
|
|
@ -39,6 +39,7 @@ export async function insertSnippetTemplate(slashCompletion: SlashCompletion) {
|
|||
await renderTemplate(
|
||||
templateText,
|
||||
pageObject,
|
||||
{ page: pageObject },
|
||||
);
|
||||
let snippetTemplate: SnippetConfig;
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue