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 (
{children} ); }