33 lines
896 B
Plaintext
33 lines
896 B
Plaintext
---
|
|
import { ClientRouter } from 'astro:transitions';
|
|
import { BASE_PATH } from 'astro:env/server';
|
|
import favicon from '../assets/favicon.png';
|
|
|
|
interface Props {
|
|
title: string;
|
|
description?: string;
|
|
keywords?: string[];
|
|
viewTransition?: boolean;
|
|
}
|
|
|
|
const { title, description, keywords, viewTransition } = Astro.props;
|
|
---
|
|
|
|
<!doctype html>
|
|
<html lang="en" transition:name="root" transition:animate="none">
|
|
<head>
|
|
{viewTransition && <ClientRouter />}
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<link rel="icon" type="image/png" href={favicon.src} />
|
|
<title>{title}</title>
|
|
<meta name="og:title" content={title} />
|
|
<meta name="description" content={description} />
|
|
{keywords && <meta name="keywords" content={keywords.join(', ')} />}
|
|
<base href=`${BASE_PATH}/` />
|
|
</head>
|
|
<body>
|
|
<slot />
|
|
</body>
|
|
</html>
|