SEO Improvements.
This commit is contained in:
+28
-6
@@ -18,7 +18,7 @@ export const Route = createRootRoute({
|
||||
// OpenGraph
|
||||
{ property: "og:title", content: "Mozimo - Premium Artisanal Chocolate" },
|
||||
{ property: "og:description", content: "India's Premier European Style Bean to Bar Chocolate Experience" },
|
||||
{ property: "og:url", content: "https://mozimo.com" },
|
||||
{ property: "og:url", content: "https://mozimo.in" },
|
||||
{ property: "og:site_name", content: "Mozimo Chocolate" },
|
||||
{ property: "og:image", content: "/og-image.jpg" },
|
||||
{ property: "og:locale", content: "en_US" },
|
||||
@@ -43,13 +43,38 @@ export const Route = createRootRoute({
|
||||
|
||||
// Preload critical images
|
||||
{ rel: 'preload', as: 'image', href: '/banners/slider-1.jpg' },
|
||||
{ rel: 'preload', as: 'image', href: '/logo/logo.svg' },
|
||||
{ rel: 'preload', as: 'image', href: '/bst/bs1.svg' },
|
||||
|
||||
// DNS prefetch
|
||||
{ rel: 'dns-prefetch', href: '//fonts.googleapis.com' },
|
||||
{ rel: 'dns-prefetch', href: '//fonts.gstatic.com' },
|
||||
],
|
||||
scripts: [
|
||||
{
|
||||
src: "https://www.googletagmanager.com/gtag/js?id=AW-16664307519",
|
||||
async: true,
|
||||
},
|
||||
{
|
||||
children: `
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'AW-16664307519');
|
||||
`,
|
||||
},
|
||||
{
|
||||
type: 'application/ld+json',
|
||||
children: JSON.stringify({
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Organization",
|
||||
"name": "Mozimo Chocolate",
|
||||
"url": "https://mozimo.in",
|
||||
"logo": "https://mozimo.in/logo/logo.svg",
|
||||
"sameAs": [
|
||||
"https://www.instagram.com/mozimo_chocolate/"
|
||||
]
|
||||
})
|
||||
}
|
||||
]
|
||||
}),
|
||||
component: RootLayout,
|
||||
notFoundComponent: () => {
|
||||
@@ -67,9 +92,6 @@ function RootLayout() {
|
||||
<head>
|
||||
<HeadContent />
|
||||
</head>
|
||||
{/* We apply a generic font-sans class or remove Next.js specific font variables.
|
||||
Since the Inter Google Font is loaded via the stylesheet above, it will automatically apply
|
||||
if configured in Tailwind CSS. */}
|
||||
<body>
|
||||
<LazyMotion features={loadFeatures} strict>
|
||||
<Outlet />
|
||||
|
||||
Reference in New Issue
Block a user