From 08554a33dfbbc2476d360b7c74dc27a78dd1a951 Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Fri, 10 May 2024 15:52:05 +0100 Subject: [PATCH] fix: data from page --- themes/book/app/components/ArticlePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/book/app/components/ArticlePage.tsx b/themes/book/app/components/ArticlePage.tsx index 1d1ff777e..c09cf5acb 100644 --- a/themes/book/app/components/ArticlePage.tsx +++ b/themes/book/app/components/ArticlePage.tsx @@ -56,7 +56,7 @@ export const ArticlePage = React.memo(function ({ const manifest = useProjectManifest(); const compute = useComputeOptions(); - const pageDesign: TemplateOptions = (data.page.frontmatter as any)?.options ?? {}; + 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 } = {