diff options
author | 2021-09-09 11:49:37 -0700 | |
---|---|---|
committer | 2021-09-09 11:49:37 -0700 | |
commit | 224b51e4603be7cc39ff0f598d90025497f513fc (patch) | |
tree | ed8d85780b34c3f32198395beaa1cad3101fcd08 /www/src/components/BaseHead.astro | |
parent | 2847ff538280c97df2992dae72af20f19b083b67 (diff) | |
download | astro-224b51e4603be7cc39ff0f598d90025497f513fc.tar.gz astro-224b51e4603be7cc39ff0f598d90025497f513fc.tar.zst astro-224b51e4603be7cc39ff0f598d90025497f513fc.zip |
blog: announce netlify sponsorship (#1345)
Diffstat (limited to 'www/src/components/BaseHead.astro')
-rw-r--r-- | www/src/components/BaseHead.astro | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/www/src/components/BaseHead.astro b/www/src/components/BaseHead.astro index d57da1d89..6593200de 100644 --- a/www/src/components/BaseHead.astro +++ b/www/src/components/BaseHead.astro @@ -3,8 +3,9 @@ export interface Props { title: string; description: string; canonicalURL: URL | string, + image?: string; } -const { title, description, canonicalURL } = Astro.props; +const { title, description, image = 'https://astro.build/social.jpg?v=1', canonicalURL } = Astro.props; --- <!-- Global Metadata --> @@ -25,14 +26,14 @@ const { title, description, canonicalURL } = Astro.props; <meta property="og:url" content={canonicalURL} /> <meta property="og:title" content={title} /> <meta property="og:description" content={description} /> -<meta property="og:image" content="https://astro.build/social.jpg?v=1" /> +<meta property="og:image" content={image} /> <!-- Twitter --> <meta property="twitter:card" content="summary_large_image" /> <meta property="twitter:url" content={canonicalURL} /> <meta property="twitter:title" content={title} /> <meta property="twitter:description" content={description} /> -<meta property="twitter:image" content="https://astro.build/social.jpg?v=1" /> +<meta property="twitter:image" content={image} /> <!-- Fonts --> <link rel="dns-prefetch" href="https://fonts.googleapis.com"> |