Main page overhaul

This commit is contained in:
becarta
2025-02-26 01:53:49 +01:00
parent 1510206b1f
commit 4b0cdaf83c
22 changed files with 1046 additions and 103 deletions

View File

@@ -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 />

View File

@@ -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>