0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

fix social og image

This commit is contained in:
Fred K. Schott 2021-11-19 16:13:38 -08:00
parent 41ada7a1a0
commit 37a20c9ad4
2 changed files with 2 additions and 5 deletions

View file

@ -8,10 +8,7 @@
"url": "https://github.com/snowpackjs/astro.git",
"directory": "packages/astro-prism"
},
"scripts": {
"build": "echo 'build'",
"test": "echo \"Error: no test specified\" && exit 1"
},
"scripts": {},
"exports": {
".": "./index.mjs"
},

View file

@ -17,7 +17,7 @@ const { Content, title, author, description, publishDate, heroImage, heroImageAl
<html lang={lang ?? 'en'}>
<head>
<BaseHead title={title} description={description} canonicalURL={permalink} image={socialImage} />
<BaseHead title={title} description={description} canonicalURL={permalink} image={socialImage && `https://astro.build${socialImage}`} />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
</head>
<body>