added schema, robots.txt, sitemap.xml

This commit is contained in:
2025-09-08 13:52:24 +05:30
parent 34d59b0056
commit 44f5a797f5
5 changed files with 99 additions and 72 deletions

View File

@@ -1,7 +1,7 @@
---
export interface Props { title: string; description: string; keywords: string; ogUrl: string; ogImage: string;}
export interface Props { title: string; description: string; keywords: string; ogUrl: string; ogImage: string; schema?: object;}
const { title, description, keywords, ogUrl, ogImage } = Astro.props;
const { title, description, keywords, ogUrl, ogImage, schema } = Astro.props;
---
<!DOCTYPE html>
@@ -29,6 +29,9 @@ const { title, description, keywords, ogUrl, ogImage } = Astro.props;
<meta property="og:image" content={ogImage}>
<meta property="og:site_name" content="Rajeev Gandhi Youth Computer Institute">
<meta property="og:locale" content="en_IN">
{schema && (
<script type="application/ld+json" set:html={JSON.stringify(schema)} />
)}
</head>
<body>
<slot />