Skip to content

Commit

Permalink
[chore] seo ์…‹์—…
Browse files Browse the repository at this point in the history
  • Loading branch information
choihooo committed Nov 24, 2024
1 parent 11991b5 commit 55dd458
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
Binary file added fe/public/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion fe/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,21 @@ import { ReactNode } from "react";

export const metadata = {
title: "Moping!",
description: "Moping",
description: "๋ชจ์ผ ๋•Œ ๋งตํ•€, MOPING",
keywords:
"๋ชจํ•‘, ๋งตํ•€, moping, ๊ณต์œ ์ง€๋„, ๋ชจ์ž„, ๋„ค์ด๋ฒ„ ์ง€๋„, ๋ถ๋งˆํฌ, ๋ง›์ง‘, ์นดํŽ˜, ๋ฐ์ดํŠธ",
openGraph: {
title: "Moping!",
description: "๋ชจ์ผ ๋•Œ ๋งตํ•€, MOPING",
url: "https://www.moping.co.kr",
images: "/thumbnail.png",
},
twitter: {
card: "summary_large_image",
title: "Moping!",
description: "๋ชจ์ผ ๋•Œ ๋งตํ•€, MOPING",
images: "/thumbnail.png",
},
};

export default function RootLayout({ children }: { children: ReactNode }) {
Expand Down
9 changes: 9 additions & 0 deletions fe/src/app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// app/robots.ts
import { MetadataRoute } from "next";

export default function robots(): MetadataRoute.Robots {
return {
rules: [{ userAgent: "*", allow: "/", disallow: "/private-page/" }],
sitemap: "https://www.moping.co.kr/sitemap.xml",
};
}
12 changes: 12 additions & 0 deletions fe/src/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { MetadataRoute } from "next";

export default function sitemap(): MetadataRoute.Sitemap {
const baseUrl = "https://www.moping.co.kr";

return [
{
url: `${baseUrl}/`,
lastModified: new Date(),
},
];
}

0 comments on commit 55dd458

Please sign in to comment.