summaryrefslogtreecommitdiff
path: root/src/layouts/Base.astro
blob: 29f95ab272777ddeed0cc7740c6a7727da2f5998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
import Head from "@components/Head.astro";
import Nav from "@components/Nav.astro";
// import Footer from "@components/Footer.astro";
import { execa } from "execa";
import "@styles/global.sass";

const { title, description } = Astro.props;

const { stdout: gitCommit } = await execa("git", ["rev-parse", "HEAD"]);
---

<!DOCTYPE html>
<html lang="en">
	<Head title={title} description={description} />

	<body class="bg-base">
		<Nav />
		<slot />
		<!-- <Footer /> -->
		<div class="flex flex-col items-center mt-12">
			<p class="text-text text-xs">{gitCommit}</p>
		</div>
	</body>
</html>