From 19074f4e7ba8901aa8e3537c2d2549e4246c3559 Mon Sep 17 00:00:00 2001 From: KimCookieYa Date: Sun, 30 Jun 2024 17:52:24 +0900 Subject: [PATCH] feat: seo optimize --- public/sitemap.xml | 27 +++++++++++++++++++++++++ src/app/layout.tsx | 48 ++++++++++++++++++++++++++++---------------- src/app/robots.ts | 20 ++++++++++++++++++ src/constants/url.ts | 10 +++++++++ 4 files changed, 88 insertions(+), 17 deletions(-) create mode 100644 public/sitemap.xml create mode 100644 src/app/robots.ts create mode 100644 src/constants/url.ts diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..aa22e6d --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,27 @@ + + + + https://not-pnu.github.io/sugang + 2024-06-30T08:40:40.525Z + yearly + 1 + + + https://not-pnu.github.io/sugang/notice + 2024-06-30T08:40:40.525Z + yearly + 1 + + + https://not-pnu.github.io/sugang/register + 2024-06-30T08:40:40.525Z + yearly + 1 + + + https://not-pnu.github.io/sugang/desired + 2024-06-30T08:40:40.525Z + yearly + 1 + + diff --git a/src/app/layout.tsx b/src/app/layout.tsx index cdb1612..0dac8bf 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,26 +1,40 @@ -import type { Metadata } from "next"; -import "./globals.css"; -import LoadingModal from "@/components/LoadingModal"; +import type {Metadata} from 'next'; +import './globals.css'; +import LoadingModal from '@/components/LoadingModal'; +import {URL_DATA} from '@/constants/url'; + export const metadata: Metadata = { - title: "부산대학교 수강신청시스템 아님", - description: "부산대학교의 수강신청을 연습할 수 있는 모의 수강신청 서비스", + metadataBase: new URL(URL_DATA.APP_URL), + title: '부산대학교 수강신청시스템 아님', + description: '부산대학교의 수강신청을 연습할 수 있는 모의 수강신청 서비스', + keywords: '부산대학교, 수강신청, 모의 수강신청, 수강신청 시뮬레이터, 수강신청 연습', + openGraph: { + title: '부산대학교 수강신청시스템 아님', + description: '부산대학교의 수강신청을 연습할 수 있는 모의 수강신청 서비스', + siteName: '센디 드라이버', + url: URL_DATA.APP_URL, + type: 'website', + }, + robots: { + index: true, + }, }; export default function RootLayout({ - children, -}: Readonly<{ - children: React.ReactNode; + children, + }: Readonly<{ + children: React.ReactNode; }>) { - return ( - - + return ( + +
- {children} + {children}
-