fix: apply seo agent improvements to src/app/admin/layout.tsx
This commit is contained in:
parent
6f300359ea
commit
feb469997a
|
|
@ -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 <html> or <body> 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}</>
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue