The minimalistic document archiving platform.
---
import type { Props as HeaddProps } from '../components/Head.astro';
import Head from '../components/Head.astro';
import { DEFAULT_LOCALE } from '../i18n/i18n.constants';
import '../styles/app.css';
import { cn } from '../utils/cn';
export type Props = {
class?: string;
excludeFromSearch?: boolean;
} & HeaddProps;
const { class: className, excludeFromSearch = false, ...headProps } = Astro.props;
const locale = Astro.currentLocale ?? DEFAULT_LOCALE;
---
<!doctype html>
<html lang={locale} data-pagefind-ignore={excludeFromSearch ? 'all' : undefined}>
<Head {...headProps} />
<body
class={cn(
`bg-background font-sans antialiased min-h-screen text-foreground text-sm ${className}`,
)}
data-kb-theme="dark"
>
<slot />
</body>
</html>