astro/examples/blog/src/components/BaseHead.astro

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.3 KiB
Text
Raw Normal View History

2021-06-28 22:29:16 +00:00
---
import '../styles/blog.css';
2021-06-28 22:29:16 +00:00
export interface Props {
title: string;
description: string;
permalink: string;
}
const { title, description, permalink } = Astro.props;
---
2021-08-16 21:34:08 +00:00
<!-- Global Metadata -->
2021-06-28 22:29:16 +00:00
<meta charset="utf-8" />
2021-08-04 12:30:58 +00:00
<meta name="viewport" content="width=device-width" />
2021-08-16 21:34:08 +00:00
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
2021-06-28 22:29:16 +00:00
<!-- 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={permalink} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content="https://astro.build/social.png?v=1" />
2021-06-28 22:29:16 +00:00
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={permalink} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content="https://astro.build/social.png?v=1" />
2021-06-28 22:29:16 +00:00
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans:wght@400;700&display=swap" />