Skip to content

Commit

Permalink
fix: add hide_title_block to book types
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed May 10, 2024
1 parent d2bb502 commit 8fc7a09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion themes/book/app/components/ArticlePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const ArticlePage = React.memo(function ({
const pageDesign: TemplateOptions = (article.frontmatter as any)?.options ?? {};
const siteDesign: TemplateOptions =
(useSiteManifest() as SiteManifest & TemplateOptions)?.options ?? {};
const { hide_toc, hide_title_block, hide_footer_links, hide_outline, outline_maxdepth } = {
const { hide_title_block, hide_footer_links, hide_outline, outline_maxdepth } = {
...siteDesign,
...pageDesign,
};
Expand Down
1 change: 1 addition & 0 deletions themes/book/app/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export interface TemplateOptions {
hide_outline?: boolean;
hide_footer_links?: boolean;
outline_maxdepth?: number;
hide_title_block?: boolean;
}

0 comments on commit 8fc7a09

Please sign in to comment.