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:
parent
41ada7a1a0
commit
37a20c9ad4
2 changed files with 2 additions and 5 deletions
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue