forked from
quillmatiq.com/augment
Fork of Chiri for Astro for my blog
1---
2// Import the global.css file here so that it is included on
3// all pages through the use of the <BaseHead /> component.
4import { themeConfig } from '@/config'
5import type { BaseHeadProps } from '@/types/component.types'
6import 'katex/dist/katex.min.css'
7
8const canonicalURL = new URL(Astro.url.pathname, Astro.site)
9
10const { title, description } = Astro.props as BaseHeadProps
11---
12
13<!-- Global Metadata -->
14<meta charset="utf-8" />
15<meta name="viewport" content="width=device-width,initial-scale=1" />
16<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
17<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
18<link rel="preload" href="/fonts/Inter.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
19<link
20 rel="preload"
21 href="/fonts/Besley-Italic.woff2"
22 as="font"
23 type="font/woff2"
24 crossorigin="anonymous"
25/>
26<link rel="sitemap" href="/sitemap-index.xml" />
27<link
28 rel="alternate"
29 type="application/rss+xml"
30 title={themeConfig.site.title}
31 href={new URL('rss.xml', Astro.site)}
32/>
33<meta name="generator" content={Astro.generator} />
34
35<!-- Canonical URL -->
36<link rel="canonical" href={canonicalURL} />
37
38<!-- Primary Meta Tags -->
39<title>
40 {title || themeConfig.site.title}
41</title>
42<meta name="title" content={title} />
43<meta name="description" content={description} />
44
45<!-- Open Graph / Facebook -->
46<meta property="og:type" content="website" />
47<meta property="og:url" content={Astro.url} />
48<meta property="og:title" content={title} />
49<meta property="og:description" content={description} />
50<meta property="og:image" content={new URL('/chiri-og.png', Astro.url)} />
51
52<!-- Twitter -->
53<meta property="twitter:card" content="summary_large_image" />
54<meta property="twitter:url" content={Astro.url} />
55<meta property="twitter:title" content={title} />
56<meta property="twitter:description" content={description} />
57<meta property="twitter:image" content={new URL('/chiri-og.png', Astro.url)} />