summaryrefslogtreecommitdiff
path: root/examples/blog/src/components/BaseHead.astro
blob: 344124012bbfab134c00fc750cadd2da9a33752d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
// Import the global.css file here so that it is included on
// all pages through the use of the <BaseHead /> component.
import '../styles/global.css';

interface Props {
	title: string;
	description: string;
	image?: string;
}

const canonicalURL = new URL(Astro.url.pathname, Astro.site);

const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props;
---

<!-- Global Metadata -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />

<!-- Font preloads -->
<link rel="preload" href="/fonts/atkinson-regular.woff" as="font" type="font/woff" crossorigin />
<link rel="preload" href="/fonts/atkinson-bold.woff" as="font" type="font/woff" crossorigin />

<!-- Canonical URL -->
<link rel="canonical" href={canonicalURL} />

<!-- Primary Meta Tags -->
<title>{title}</title>
<meta name="title" content={title} />
<meta name="description" content={description} />

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content={Astro.url} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={new URL(image, Astro.url)} />

<!-- Twitter -->
<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} />
<meta property="twitter:image" content={new URL(image, Astro.url)} />
/td> 2023-03-31[ci] formatGravatar matthewp 2-8/+7 2023-03-31supporting top of await (#6671)Gravatar wulinsheng123 7-5/+63 2023-03-31[ci] release (#6694)astro@2.1.9@astrojs/rss@2.3.2@astrojs/react@2.1.1@astrojs/lit@2.0.0@astrojs/image@0.16.4Gravatar Houston (Bot) 59-143/+131 2023-03-31fix(check): Dynamically import check command (#6717)Gravatar Erika 2-1/+7 2023-03-31fix(errors): Add simplified message for MarkdownImageNotFound (#6718)Gravatar Erika 1-0/+2 2023-03-31[ci] formatGravatar Princesseuh 1-2/+2 2023-03-31Fix incorrect path in error overlay on Win (#6679)Gravatar Peter Timoshevsky 5-5/+43 2023-03-30Remove unnecessary image-related `.wasm` files inside build output when possi...Gravatar Erika 6-47/+45 2023-03-30Fix InferGetStaticParamsType and InferGetStaticPropsType not working with syn...Gravatar Erika 2-7/+16 2023-03-30Fix multiple images being generated for the same image (#6710)Gravatar Erika 6-15/+28 2023-03-30[RSS] Fix: update `RSSFeedItem` type to comply with `strictest` tsconfig (#6614)Gravatar Aivars Liepa 2-1/+6 2023-03-29Update lit-ssr dependency (#6681)Gravatar Elliott Marquez 13-82/+107 2023-03-29fix(images): Improve error handling around the new assets feature (#6649)Gravatar Erika 17-21/+290 2023-03-29Use debug option for debugDir (#6554)Gravatar Isaac 1-1/+1