0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-04 00:20:26 +03:00
Files
popov.link/src/components/Head.astro

37 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-09-05 15:01:13 +00:00
---
import type { WithContext, Thing } from "schema-dts";
import JsonLd from "./JsonLd.astro";
2024-09-12 16:36:57 +00:00
type Props = {
2024-09-12 22:57:55 +00:00
readonly description: string;
readonly title: string;
readonly schema: WithContext<Thing>;
2024-09-12 16:36:57 +00:00
};
2024-09-11 22:03:55 +00:00
2024-09-12 16:36:57 +00:00
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const { description, title, schema } = Astro.props;
2024-09-05 15:01:13 +00:00
---
<head>
2024-09-11 22:03:55 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
2024-09-12 22:57:55 +00:00
<meta name="description" content={description} />
2024-09-11 22:03:55 +00:00
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
2024-09-05 15:01:13 +00:00
<link href="/feed.xml" rel="alternate" title="RSS" type="application/atom+xml" />
<link href="/sitemap-index.xml" rel="sitemap" />
<link href={canonicalURL} rel="canonical" />
2024-09-12 22:57:55 +00:00
<title>{title}</title>
2025-02-05 00:20:40 +00:00
2025-06-05 23:33:09 +00:00
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="icon" type="image/png" href="/favicon.png" />
2025-02-05 00:20:40 +00:00
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#ffffff" />
<JsonLd schema={schema} />
2024-09-05 15:01:13 +00:00
</head>