From e08c191b776fd02fc3237110d85a45672f28bd98 Mon Sep 17 00:00:00 2001 From: Andy Preston Date: Thu, 18 Jul 2024 11:59:26 +0100 Subject: [PATCH] basename in articles/_build --- articles/_build/mod.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/articles/_build/mod.ts b/articles/_build/mod.ts index 63d19bc..e18d1b9 100644 --- a/articles/_build/mod.ts +++ b/articles/_build/mod.ts @@ -10,8 +10,7 @@ import { tokenPipeline } from "./tokenPipeline.ts"; export const transformer = (markdownIt: MarkdownIt) => { markdownIt.core.ruler.push("transformer", (state: MarkdownItState) => { const pageData: PageData = state.env.data!.page!.data!; - const basename = state.env.data!.page!.data!.basename; - if (basename != "front-page") { + if (pageData.basename != "front-page") { const titleFinder = finder(state); state.tokens = tokenPipeline(state.tokens) .andThen(scopeOnHeadings)