- Next.js 16 App Router + TypeScript + Tailwind CSS 4 - Prisma/SQLite 기반 공지사항·자료실·관리자·문의/제보 - 네이버 블로그 RSS 최신 글 5개 노출 - OCI 운영 배포 스크립트 및 문서
51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
import type { Metadata, Viewport } from "next";
|
|
|
|
import { SITE_DESCRIPTION, SITE_NAME, SITE_SHORT_NAME, SITE_URL } from "@/lib/constants";
|
|
|
|
import "./globals.css";
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL(SITE_URL),
|
|
title: {
|
|
default: `${SITE_NAME} | ${SITE_SHORT_NAME}`,
|
|
template: `%s | ${SITE_SHORT_NAME}`,
|
|
},
|
|
description: SITE_DESCRIPTION,
|
|
keywords: ["용산", "공중케이블", "전신주", "주민안전", "용공협", "용산구"],
|
|
openGraph: {
|
|
type: "website",
|
|
locale: "ko_KR",
|
|
url: SITE_URL,
|
|
siteName: SITE_NAME,
|
|
title: `${SITE_NAME} | ${SITE_SHORT_NAME}`,
|
|
description: SITE_DESCRIPTION,
|
|
images: [{ url: "/images/og-default.jpg", width: 800, height: 1067, alt: SITE_NAME }],
|
|
},
|
|
robots: { index: true, follow: true },
|
|
alternates: {
|
|
types: {
|
|
"application/rss+xml": "/feed.xml",
|
|
},
|
|
},
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
width: "device-width",
|
|
initialScale: 1,
|
|
themeColor: "#0f3d50",
|
|
};
|
|
|
|
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
|
return (
|
|
<html lang="ko" data-scroll-behavior="smooth">
|
|
<head>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css"
|
|
/>
|
|
</head>
|
|
<body>{children}</body>
|
|
</html>
|
|
);
|
|
}
|