Skip to content

Commit

Permalink
fix: Fix page titles
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Jan 25, 2024
1 parent 46577e6 commit da9eb30
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export function memberTemplate(
md.push(context.partials.breadcrumbs(page));
}

md.push(heading(1, context.partials.pageTitle(page)));
if (!context.options.getValue('hidePageTitle')) {
md.push(heading(1, context.partials.pageTitle(page)));
}

md.push(context.hook('content.begin').join('\n'));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function projectTemplate(
md.push(context.partials.commentParts(page.model.readme));
}

if (!includeReadme) {
if (!context.options.getValue('hidePageTitle') && !includeReadme) {
md.push(heading(1, context.partials.pageTitle(page)));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export function reflectionTemplate(
md.push(context.partials.breadcrumbs(page));
}

md.push(heading(1, context.partials.pageTitle(page)));
if (!context.options.getValue('hidePageTitle')) {
md.push(heading(1, context.partials.pageTitle(page)));
}

md.push(context.hook('content.begin').join('\n'));

Expand Down

0 comments on commit da9eb30

Please sign in to comment.