74 lines
2.2 KiB
Text
74 lines
2.2 KiB
Text
---
|
|
import { ClientRouter } from "astro:transitions";
|
|
import { SITE } from "@/consts";
|
|
|
|
interface Props {
|
|
title: string;
|
|
description: string;
|
|
image?: string;
|
|
}
|
|
|
|
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
|
|
|
const { title, description } = Astro.props;
|
|
---
|
|
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
|
<meta name="generator" content={Astro.generator} />
|
|
<meta name="HandheldFriendly" content="True" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
<meta
|
|
name="format-detection"
|
|
content="telephone=no,date=no,address=no,email=no,url=no"
|
|
/>
|
|
|
|
<link rel="canonical" href={canonicalURL} />
|
|
<link rel="sitemap" href="/sitemap-index.xml" />
|
|
<link
|
|
rel="alternate"
|
|
type="application/rss+xml"
|
|
title={SITE.title}
|
|
href={new URL('rss.xml', Astro.site)}
|
|
/>
|
|
|
|
<title>{title}</title>
|
|
<meta name="title" content={title} />
|
|
<meta name="apple-mobile-web-app-title" content={title} />
|
|
|
|
<meta name="description" content={description} />
|
|
<meta name="author" content={SITE.title} />
|
|
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
|
<link rel="manifest" href="/site.webmanifest" />
|
|
|
|
<meta
|
|
name="theme-color"
|
|
content="#121212"
|
|
media="(prefers-color-scheme: dark)"
|
|
/>
|
|
<meta
|
|
name="theme-color"
|
|
content="#ffffff"
|
|
media="(prefers-color-scheme: light)"
|
|
/>
|
|
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:url" content={Astro.url} />
|
|
<meta property="og:site_name" content={SITE.title} />
|
|
<meta property="og:title" content={title} />
|
|
<meta property="og:description" content={description} />
|
|
|
|
<meta property="twitter:card" content="summary_large_image" />
|
|
<meta property="twitter:url" content={Astro.url} />
|
|
<meta property="twitter:title" content={title} />
|
|
<meta property="twitter:description" content={description} />
|
|
|
|
<ClientRouter />
|