Files
365devnet/src/layouts/Layout.astro
becarta 890d7b8670
Some checks failed
GitHub Actions / build (18) (push) Has been cancelled
GitHub Actions / build (20) (push) Has been cancelled
GitHub Actions / build (22) (push) Has been cancelled
GitHub Actions / check (push) Has been cancelled
Updated site completely
2025-03-29 22:32:31 +01:00

78 lines
2.5 KiB
Plaintext

---
import '~/assets/styles/tailwind.css';
import { I18N } from 'astrowind:config';
import CommonMeta from '~/components/common/CommonMeta.astro';
import Favicons from '~/components/Favicons.astro';
import CustomStyles from '~/components/CustomStyles.astro';
import ApplyColorMode from '~/components/common/ApplyColorMode.astro';
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';
import LanguagePersistence from '~/components/LanguagePersistence.astro';
import GlobalBackground from '~/components/ui/GlobalBackground.astro';
import CookieBanner from '~/components/CookieBanner.astro';
import BackToTop from '~/components/ui/BackToTop.astro';
// Comment the line below to disable View Transitions
import { ClientRouter } from 'astro:transitions';
import type { MetaData as MetaDataType } from '~/types';
export interface Props {
metadata?: MetaDataType;
}
const { metadata = {} } = Astro.props;
const { language, textDirection } = I18N;
---
<!doctype html>
<html lang={language} dir={textDirection} class="2xl:text-[20px]">
<head>
<CommonMeta />
<link rel="alternate" hreflang="en" href="https://www.365devnet.eu/en/" />
<link rel="alternate" hreflang="nl" href="https://www.365devnet.eu/nl/" />
<link rel="alternate" hreflang="de" href="https://www.365devnet.eu/de/" />
<link rel="alternate" hreflang="fr" href="https://www.365devnet.eu/fr/" />
<Favicons />
<CustomStyles />
<ApplyColorMode />
<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">
<GlobalBackground />
<slot name="structured-data" />
<slot />
<BasicScripts />
<LanguagePersistence />
<CookieBanner />
<BackToTop />
</body>
</html>