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", "url": "https://github.com/snowpackjs/astro.git",
"directory": "packages/astro-prism" "directory": "packages/astro-prism"
}, },
"scripts": { "scripts": {},
"build": "echo 'build'",
"test": "echo \"Error: no test specified\" && exit 1"
},
"exports": { "exports": {
".": "./index.mjs" ".": "./index.mjs"
}, },

View file

@ -17,7 +17,7 @@ const { Content, title, author, description, publishDate, heroImage, heroImageAl
<html lang={lang ?? 'en'}> <html lang={lang ?? 'en'}>
<head> <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')} /> <link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
</head> </head>
<body> <body>