---
import '../assets/style.css'
import '../assets/fonts.css'
import '../assets/prose.css'
import 'katex/dist/katex.min.css'
import '@unocss/reset/tailwind-v4.css'
import { ClientRouter } from 'astro:transitions'

interface Props {
  title?: string
}

const { title = '小帕的小窝' } = Astro.props
---

<html lang="zh-hans">
  <head>
    <meta charset="utf-8" />
    <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
    <link rel="icon" href="/favicon.ico" />
    <link
      rel="alternate"
      type="application/rss+xml"
      title="小帕的小窝 RSS 订阅"
      href={new URL('rss.xml', Astro.site || 'https://passthem.top')}
    />
    <meta name="viewport" content="width=device-width" />
    <meta name="generator" content={Astro.generator} />
    <title>{title}</title>
    <ClientRouter />
  </head>
  <body>
    <slot />
  </body>
</html>
