diff options
author | 2021-11-19 16:13:38 -0800 | |
---|---|---|
committer | 2021-11-19 16:13:38 -0800 | |
commit | 37a20c9ad488e12ade2b13f14aee72cc30e38415 (patch) | |
tree | 03a9116cd0a62297d6261dea09d9ffc8e7f2c205 | |
parent | 41ada7a1a00d1b9bb9eceabf144592da102fe911 (diff) | |
download | astro-37a20c9ad488e12ade2b13f14aee72cc30e38415.tar.gz astro-37a20c9ad488e12ade2b13f14aee72cc30e38415.tar.zst astro-37a20c9ad488e12ade2b13f14aee72cc30e38415.zip |
fix social og image
Diffstat (limited to '')
-rw-r--r-- | packages/astro-prism/package.json | 5 | ||||
-rw-r--r-- | www/src/pages/blog/[slug].astro | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/packages/astro-prism/package.json b/packages/astro-prism/package.json index 6dade6796..e6bec811f 100644 --- a/packages/astro-prism/package.json +++ b/packages/astro-prism/package.json @@ -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" }, diff --git a/www/src/pages/blog/[slug].astro b/www/src/pages/blog/[slug].astro index bdf35d1e5..95c1230d0 100644 --- a/www/src/pages/blog/[slug].astro +++ b/www/src/pages/blog/[slug].astro @@ -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> |