diff --git a/src/app/admin/layout.tsx b/src/app/admin/layout.tsx new file mode 100644 index 0000000..e4e2cc5 --- /dev/null +++ b/src/app/admin/layout.tsx @@ -0,0 +1,31 @@ +import type { Metadata } from 'next' + +/** + * Admin section layout. + * - Forces noindex / nofollow so search engines never index /admin/* routes. + * - Does NOT render a or tag — the root layout handles that. + */ +export const metadata: Metadata = { + title: { + default: 'Admin', + template: '%s | Admin', + }, + description: 'CMS administration panel.', + robots: { + index: false, + follow: false, + nocache: true, + googleBot: { + index: false, + follow: false, + }, + }, +} + +export default function AdminLayout({ + children, +}: { + children: React.ReactNode +}) { + return <>{children} +}