Add support for new config.yaml
This commit is contained in:
49
src/layouts/Layout.astro
Normal file
49
src/layouts/Layout.astro
Normal file
@@ -0,0 +1,49 @@
|
||||
---
|
||||
import '~/assets/styles/tailwind.css';
|
||||
|
||||
import { I18N_CONFIG } from "~/utils/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 { MetaData as MetaDataType } from '~/types';
|
||||
|
||||
export interface Props {
|
||||
metadata?: MetaDataType;
|
||||
}
|
||||
|
||||
const { metadata = {} } = Astro.props;
|
||||
const { language, textDirection } = I18N_CONFIG;
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang={language} dir={textDirection} class="2xl:text-[20px]">
|
||||
|
||||
<head>
|
||||
<CommonMeta />
|
||||
<Favicons />
|
||||
<CustomStyles />
|
||||
<ApplyColorMode />
|
||||
<Metadata {...metadata} />
|
||||
<SiteVerification />
|
||||
<Analytics />
|
||||
</head>
|
||||
|
||||
<body class="antialiased text-default bg-page tracking-tight">
|
||||
<slot />
|
||||
|
||||
<BasicScripts />
|
||||
|
||||
<style is:global>
|
||||
img {
|
||||
content-visibility: auto;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user