add meta
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
---
|
||||
export interface Props {
|
||||
title: string;
|
||||
}
|
||||
export interface Props { title: string; description: string; keywords: string; ogUrl: string; ogImage: string;}
|
||||
|
||||
const { title } = Astro.props;
|
||||
const { title, description, keywords, ogUrl, ogImage } = Astro.props;
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
@@ -11,9 +9,25 @@ const { title } = Astro.props;
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
|
||||
<meta name="title" content={title}>
|
||||
<meta name="description" content={description} />
|
||||
<meta name="keywords" content={keywords}>
|
||||
<meta name="author" content='Rajeev Gandhi Youth Computer Institute'>
|
||||
<meta name="robots" content="index, follow">
|
||||
<meta name="language" content="English">
|
||||
<meta name="theme-color" content="#0A74DA" />
|
||||
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content={title}>
|
||||
<meta property="og:description" content={description}>
|
||||
<meta property="og:url" content={ogUrl}>
|
||||
<meta property="og:image" content={ogImage}>
|
||||
<meta property="og:site_name" content="Rajeev Gandhi Youth Computer Institute">
|
||||
<meta property="og:locale" content="en_IN">
|
||||
</head>
|
||||
<body>
|
||||
<slot />
|
||||
|
||||
Reference in New Issue
Block a user