barta-india.in/src/layouts/Layout.astro

83 lines
3.0 KiB
Plaintext

---
import MainHeader from '../components/MainHeader.astro';
import Footer from '../components/Footer.astro';
export interface Props {
title: string; metaTitle: string; description: string; ogImg: string; tiwtterCard: string; tiwtterImage: string; tiwtterTitle: string; tiwtterDesc: string; tiwtterURL: string; artPubTime: string; artUpdtTime: string; ogSiteName: string; ogType: string; ogTitle: string; ogDesc: string; ogURL: string; canonical: string;
}
const { title, metaTitle, description, ogImg, tiwtterCard, tiwtterImage, tiwtterTitle, tiwtterDesc, tiwtterURL, artPubTime, artUpdtTime, ogSiteName, ogType, ogTitle, ogDesc, ogURL, canonical} = Astro.props;
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/ico+xml" href="/favicon.ico" />
<link rel="canonical" href={canonical} />
<meta name="generator" content="barta-india.in html generator" />
<title>{title}</title>
<meta name="title" content={metaTitle}>
<meta name="description" content={description}>
<meta name="twitter:card" content={tiwtterCard}>
<meta name="twitter:image" itemprop="image" content={tiwtterImage}>
<meta name="twitter:title" content={tiwtterTitle}>
<meta name="twitter:description" content={tiwtterDesc}>
<meta name="twitter:url" content={tiwtterURL}>
<meta name="article:published_time" content={artPubTime}>
<meta name="article:updated_time" content={artUpdtTime}>
<link rel="shortcut icon" href="">
<meta property="og:site_name" content={ogSiteName}>
<meta property="og:type" content={ogType}>
<meta property="og:image" itemprop="image" content={ogImg}>
<meta property="og:title" content={ogTitle}>
<meta property="og:description" content={ogDesc}>
<meta property="og:url" content={ogURL}>
<meta property="og:image:width" content="526" />
<meta property="og:image:height" content="275" />
<meta name="og:image:secure_url" content={ogImg} />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "News Portal",
"name": "Barta India",
"url": "https://barta-india.in/",
"logo": "/img/barta_logo.png",
"contactPoint": {
"@type": "ContactPoint",
"contactType": "Visitor Feedback",
"url": "https://barta-india.in/contact/",
},
"sameAs": [
"https://www.facebook.com/bartaindia?mibextid=eHce3h",
]
}
</script>
</head>
<body>
<div>
<MainHeader />
</div>
<div class="mt-[150px]">
<slot />
</div>
<Footer />
</body>
</html>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9252259454702469" crossorigin="anonymous"></script>
<style is:global>
/* :root {
--accent: 124, 58, 237;
--accent-gradient: linear-gradient(45deg, rgb(var(--accent)), #da62c4 30%, white 60%);
}
html {
font-family: system-ui, sans-serif;
background-color: #F6F6F6;
}
code {
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
Bitstream Vera Sans Mono, Courier New, monospace;
} */
</style>