From 06ff8c15d5bc444638156b16943c50286d215b82 Mon Sep 17 00:00:00 2001 From: guesung Date: Thu, 8 Aug 2024 15:20:56 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20JSON-LD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/layout.tsx | 6 ++++-- src/components/JsonLD/JsonLD.tsx | 15 +++++++++++++ src/components/JsonLD/index.ts | 1 + src/components/index.ts | 1 + src/constants/index.ts | 1 + src/constants/meta.ts | 36 ++++++++++++++++++++++++++++++++ 6 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 src/components/JsonLD/JsonLD.tsx create mode 100644 src/components/JsonLD/index.ts create mode 100644 src/components/index.ts create mode 100644 src/constants/index.ts diff --git a/src/app/layout.tsx b/src/app/layout.tsx index b365c4a..6500bee 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -2,6 +2,7 @@ import './globals.css'; import { Suspense } from 'react'; +import { JsonLD } from '@/components'; import { Analytics } from '@/components/Analytics'; import { OverlayProvider } from '@/components/Overlay/OverlayProvider'; import METADATA from '@/constants/meta'; @@ -15,11 +16,12 @@ export const metadata: Metadata = METADATA; export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - -
+ +
+ {children} diff --git a/src/components/JsonLD/JsonLD.tsx b/src/components/JsonLD/JsonLD.tsx new file mode 100644 index 0000000..aafccb4 --- /dev/null +++ b/src/components/JsonLD/JsonLD.tsx @@ -0,0 +1,15 @@ +import Script from 'next/script'; + +import { JSON_LD } from '@/constants'; + +export default function JsonLD() { + return ( +