Skip to content

Commit

Permalink
basename in articles/_build
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-preston committed Jul 18, 2024
1 parent aff7798 commit e08c191
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions articles/_build/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e08c191

Please sign in to comment.