Skip to content

Commit

Permalink
Revert "feat(experiment): rewrite Web/API page titles (#10926)"
Browse files Browse the repository at this point in the history
This reverts commit b625183.
  • Loading branch information
caugner committed May 30, 2024
1 parent d3aff5c commit d077eac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 529 deletions.
4 changes: 1 addition & 3 deletions build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import {
postProcessSmallerHeadingIDs,
} from "./utils.js";
import { getWebFeatureStatus } from "./web-features.js";
import { rewritePageTitleForSEO } from "./seo.js";
export { default as SearchIndex } from "./search-index.js";
export { gather as gatherGitHistory } from "./git-history.js";
export { buildSPAs } from "./spas.js";
Expand Down Expand Up @@ -537,8 +536,7 @@ export async function buildDocument(
// a breadcrumb in the React component.
addBreadcrumbData(document.url, doc);

const pageTitle = getPageTitle(doc);
doc.pageTitle = rewritePageTitleForSEO(doc.mdn_url, pageTitle);
doc.pageTitle = getPageTitle(doc);

// Decide whether it should be indexed (sitemaps, robots meta tag, search-index)
doc.noIndexing =
Expand Down
Loading

0 comments on commit d077eac

Please sign in to comment.