From e9a4880908e3af5e80b77acac99aee498b088f12 Mon Sep 17 00:00:00 2001 From: Bjorn Lammers Date: Wed, 23 Apr 2025 13:16:23 +0200 Subject: [PATCH] refactor(web): move gallery schema to inline script --- web/src/app/icons/page.tsx | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/web/src/app/icons/page.tsx b/web/src/app/icons/page.tsx index 92d04be1..8d70726a 100644 --- a/web/src/app/icons/page.tsx +++ b/web/src/app/icons/page.tsx @@ -41,26 +41,24 @@ export const dynamic = "force-static" export default async function IconsPage() { const icons = await getIconsArray() - const gallerySchema = { - "@context": "https://schema.org", - "@type": "ImageGallery", - "name": `${SITE_NAME} - Browse ${icons.length} Icons - ${SITE_TAGLINE}`, - "description": getBrowseDescription(icons.length), - "url": `${WEB_URL}/icons`, - "numberOfItems": icons.length, - "creator": { - "@type": "Organization", - "name": ORGANIZATION_NAME, - "url": GITHUB_URL - } - } - return ( <>