Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 7d5c825

Browse files
committed
Fixing og:image 🚀
1 parent 95e9cbe commit 7d5c825

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/templates/post.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Post: React.FC<PageProps<PostQuery>> = ({ data, location }) => {
2727
<Head
2828
url={location.href}
2929
pageType={"article"}
30-
imageUrl={`${location.protocol}//${location.host}${getSrc(
30+
imageUrl={`${getSrc(
3131
post.frontmatter!.image!.childImageSharp?.gatsbyImageData
3232
)!}`}
3333
customTitle={post.frontmatter!.title!}

0 commit comments

Comments
 (0)