Skip to content

Commit 0d83b76

Browse files
Fix OG Path
1 parent 529068b commit 0d83b76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/layouts/BlogPost.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import "../styles/shiki-highlight.css"
55
import BaseHead from "../components/BaseHead.astro"
66
import BlogPost from "../components/BlogPost.astro"
77
import BaseTopOfBody from "src/components/BaseTopOfBody.astro"
8+
import path from "path"
89
910
const { content } = Astro.props
1011
const {
@@ -20,7 +21,7 @@ const url = Astro.request.url
2021

2122
<html lang={content.lang || "en"}>
2223
<head>
23-
<BaseHead {title} {description} permalink={url} image={`${url}/og.webp`} />
24+
<BaseHead {title} {description} permalink={url} image={path.join(url, "og.webp")} />
2425
</head>
2526

2627
<body>

0 commit comments

Comments
 (0)