Fork of Chiri for Astro for my blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 7470e767e63587ea2794bd1d255990406e48a222 58 lines 2.0 kB view raw
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, ogImage } = Astro.props as BaseHeadProps 11const imageUrl = ogImage ? new URL(ogImage, Astro.url) : new URL('/og/chiri-og.png', Astro.url) 12--- 13 14<!-- Global Metadata --> 15<meta charset="utf-8" /> 16<meta name="viewport" content="width=device-width,initial-scale=1" /> 17<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> 18<link rel="apple-touch-icon" href="/apple-touch-icon.png" /> 19<link rel="preload" href="/fonts/Inter.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> 20<link 21 rel="preload" 22 href="/fonts/Besley-Italic.woff2" 23 as="font" 24 type="font/woff2" 25 crossorigin="anonymous" 26/> 27<link rel="sitemap" href="/sitemap-index.xml" /> 28<link 29 rel="alternate" 30 type="application/rss+xml" 31 title={themeConfig.site.title} 32 href={new URL('rss.xml', Astro.site)} 33/> 34<meta name="generator" content={Astro.generator} /> 35 36<!-- Canonical URL --> 37<link rel="canonical" href={canonicalURL} /> 38 39<!-- Primary Meta Tags --> 40<title> 41 {title || themeConfig.site.title} 42</title> 43<meta name="title" content={title} /> 44<meta name="description" content={description} /> 45 46<!-- Open Graph / Facebook --> 47<meta property="og:type" content="website" /> 48<meta property="og:url" content={Astro.url} /> 49<meta property="og:title" content={title} /> 50<meta property="og:description" content={description} /> 51<meta property="og:image" content={imageUrl} /> 52 53<!-- Twitter --> 54<meta property="twitter:card" content="summary_large_image" /> 55<meta property="twitter:url" content={Astro.url} /> 56<meta property="twitter:title" content={title} /> 57<meta property="twitter:description" content={description} /> 58<meta property="twitter:image" content={imageUrl} />