Skip to content

Commit

Permalink
feedback 3
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Feb 23, 2024
1 parent 2336999 commit 1d14fd9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/curriculum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import frontmatter from "front-matter";

import { BUILD_OUT_ROOT, CURRICULUM_ROOT } from "../libs/env/index.js";
import { Doc, DocParent } from "../libs/types/document.js";
import { DEFAULT_LOCALE } from "../libs/constants/index.js";
import { CURRICULUM_TITLE, DEFAULT_LOCALE } from "../libs/constants/index.js";
import * as kumascript from "../kumascript/index.js";
import LANGUAGES_RAW from "../libs/languages/index.js";
import { syntaxHighlight } from "./syntax-highlight.js";
Expand Down Expand Up @@ -314,7 +314,9 @@ export async function buildCurriculumPage(
throw error;
}

doc.pageTitle = `${doc.title} | MDN Curriculum`;
doc.pageTitle = doc.title
? `${doc.title} | ${CURRICULUM_TITLE}`
: CURRICULUM_TITLE;

doc.noIndexing = false;
doc.toc = makeTOC(doc, true).map(({ text, id }) => {
Expand Down

0 comments on commit 1d14fd9

Please sign in to comment.