Skip to content

Commit

Permalink
feat: seo optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
KimCookieYa committed Jun 30, 2024
1 parent 2ccf477 commit 19074f4
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 17 deletions.
27 changes: 27 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://not-pnu.github.io/sugang</loc>
<lastmod>2024-06-30T08:40:40.525Z</lastmod>
<changefreq>yearly</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://not-pnu.github.io/sugang/notice</loc>
<lastmod>2024-06-30T08:40:40.525Z</lastmod>
<changefreq>yearly</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://not-pnu.github.io/sugang/register</loc>
<lastmod>2024-06-30T08:40:40.525Z</lastmod>
<changefreq>yearly</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://not-pnu.github.io/sugang/desired</loc>
<lastmod>2024-06-30T08:40:40.525Z</lastmod>
<changefreq>yearly</changefreq>
<priority>1</priority>
</url>
</urlset>
48 changes: 31 additions & 17 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<html lang="ko">
<body>
return (
<html lang="ko">
<body>
<div id="root" className="relative">
{children}
{children}
</div>
<div id="modal-root" />
<LoadingModal />
</body>
</html>
);
<div id="modal-root"/>
<LoadingModal/>
</body>
</html>
);
}
20 changes: 20 additions & 0 deletions src/app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type {MetadataRoute} from 'next';
import {URL_DATA} from '@/constants/url';


export default function robots(): MetadataRoute.Robots {
return {
rules: [
{
userAgent: '*',
allow: [
'/sugang',
'/sugang/notice',
'/sugang/register',
'/sugang/desired',
],
},
],
sitemap: URL_DATA.APP_URL + '/sitemap.xml',
};
}
10 changes: 10 additions & 0 deletions src/constants/url.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export const URL_DATA = {
DEFAULT_URL: 'sugang',
APP_URL: 'https://not-pnu.github.io/sugang',
MAILBADARA_URL: 'https://not-pnu.github.io/homepage/',
} as const;

export const MY_DATA = {
MY_EMAIL:'[email protected]',
GITHUB_REPO: 'https://github.com/not-pnu/sugang'
} as const;

0 comments on commit 19074f4

Please sign in to comment.