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)