From 8fc7a095f3ebe529568b4856054478ddb4d9e5d7 Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Fri, 10 May 2024 16:07:34 +0100 Subject: [PATCH] fix: add hide_title_block to book types --- themes/book/app/components/ArticlePage.tsx | 2 +- themes/book/app/types.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/book/app/components/ArticlePage.tsx b/themes/book/app/components/ArticlePage.tsx index c09cf5acb..bbddba727 100644 --- a/themes/book/app/components/ArticlePage.tsx +++ b/themes/book/app/components/ArticlePage.tsx @@ -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, }; diff --git a/themes/book/app/types.ts b/themes/book/app/types.ts index 1416b4172..edb9dd21a 100644 --- a/themes/book/app/types.ts +++ b/themes/book/app/types.ts @@ -3,4 +3,5 @@ export interface TemplateOptions { hide_outline?: boolean; hide_footer_links?: boolean; outline_maxdepth?: number; + hide_title_block?: boolean; }