Add variables to config and minimal refactor

This commit is contained in:
prototypa
2022-08-28 20:31:06 -04:00
parent 06bf8df636
commit 19b4a25012
9 changed files with 33 additions and 35 deletions

View File

@ -16,7 +16,8 @@ const { googleAnalyticsId = false } = SITE;
<head>
<MetaTags {...meta} />
{googleAnalyticsId && <Analytics id={googleAnalyticsId} />}
{googleAnalyticsId &&
<Analytics id={googleAnalyticsId} />}
</head>
<body class="antialiased text-gray-900 dark:text-slate-300 tracking-tight bg-white dark:bg-slate-900">
@ -24,4 +25,4 @@ const { googleAnalyticsId = false } = SITE;
<BasicScripts />
</body>
</html>
</html>

View File

@ -9,6 +9,8 @@ const { meta } = Astro.props;
<Layout meta={meta}>
<Header />
<slot />
<main>
<slot />
</main>
<Footer />
</Layout>