From 321e07d9fd44fbb02ebcf0c207c320a0961efb56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Mon, 7 Apr 2025 23:46:02 +0200 Subject: [PATCH] Try more --- packages/gitbook/src/routes/ogimage.tsx | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/packages/gitbook/src/routes/ogimage.tsx b/packages/gitbook/src/routes/ogimage.tsx index df6d5ced6..f974b8d14 100644 --- a/packages/gitbook/src/routes/ogimage.tsx +++ b/packages/gitbook/src/routes/ogimage.tsx @@ -164,22 +164,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 = linker.toAbsoluteURL( linker.toPathInSpace(`~gitbook/icon?size=medium&theme=${customization.themes.default}`) ); @@ -206,7 +206,7 @@ export async function serveOGImage(baseContext: GitBookSiteContext, params: Page {/* Grid */} {/* Logo */} - {customization.header.logo ? ( + {customization.header.logo && 0 ? (