From 58c4cb2f9eb77489f105e802b2798fa9e578da34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Tue, 8 Apr 2025 00:24:12 +0200 Subject: [PATCH] Continue --- packages/gitbook/src/routes/ogimage.tsx | 41 ++++++++++++++----------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/packages/gitbook/src/routes/ogimage.tsx b/packages/gitbook/src/routes/ogimage.tsx index 167f06778..016290f40 100644 --- a/packages/gitbook/src/routes/ogimage.tsx +++ b/packages/gitbook/src/routes/ogimage.tsx @@ -165,22 +165,22 @@ export async function serveOGImage(baseContext: GitBookSiteContext, params: Page } const favicon = await (async () => { - // if ('icon' in customization.favicon) - // return ( - // Icon - // ); - // if ('emoji' in customization.favicon) - // return ( - // - // {String.fromCodePoint(Number.parseInt(`0x${customization.favicon.emoji}`))} - // - // ); + if ('icon' in customization.favicon) + return ( + Icon + ); + if ('emoji' in customization.favicon) + return ( + + {String.fromCodePoint(Number.parseInt(`0x${customization.favicon.emoji}`))} + + ); const src = await readSelfImage( linker.toAbsoluteURL( linker.toPathInSpace( @@ -215,7 +215,7 @@ export async function serveOGImage(baseContext: GitBookSiteContext, params: Page /> {/* Logo */} - {customization.header.logo && 0 ? ( + {customization.header.logo ? ( Logo();