Main page overhaul
This commit is contained in:
@@ -11,6 +11,7 @@ import Metadata from '~/components/common/Metadata.astro';
|
||||
import SiteVerification from '~/components/common/SiteVerification.astro';
|
||||
import Analytics from '~/components/common/Analytics.astro';
|
||||
import BasicScripts from '~/components/common/BasicScripts.astro';
|
||||
import StructuredData from '~/components/common/StructuredData.astro';
|
||||
|
||||
// Comment the line below to disable View Transitions
|
||||
import { ClientRouter } from 'astro:transitions';
|
||||
@@ -35,12 +36,26 @@ const { language, textDirection } = I18N;
|
||||
<Metadata {...metadata} />
|
||||
<SiteVerification />
|
||||
<Analytics />
|
||||
|
||||
<!-- Structured Data for SEO -->
|
||||
<StructuredData data={{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "365DevNet",
|
||||
"url": Astro.url.origin,
|
||||
"potentialAction": {
|
||||
"@type": "SearchAction",
|
||||
"target": `${Astro.url.origin}/search?q={search_term_string}`,
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
}} />
|
||||
|
||||
<!-- Comment the line below to disable View Transitions -->
|
||||
<ClientRouter fallback="swap" />
|
||||
</head>
|
||||
|
||||
<body class="antialiased text-default bg-page tracking-tight">
|
||||
<slot name="structured-data" />
|
||||
<slot />
|
||||
|
||||
<BasicScripts />
|
||||
|
@@ -15,6 +15,7 @@ const { metadata } = Astro.props;
|
||||
---
|
||||
|
||||
<Layout metadata={metadata}>
|
||||
<slot name="structured-data" slot="structured-data" />
|
||||
<slot name="header">
|
||||
<Header {...headerData} isSticky showRssFeed showToggleTheme />
|
||||
</slot>
|
||||
|
Reference in New Issue
Block a user