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

Commit 56e4bec

Browse files
committed
Fixed all og images 🚀
1 parent 7d5c825 commit 56e4bec

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/pages/blog/archive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Archive: React.FC<PageProps<ArchiveQuery>> = ({ data, location }) => {
2020
<Head
2121
url={location.href}
2222
pageType={"website"}
23-
imageUrl={`${location.protocol}//${location.host}/${featuredImage}`}
23+
imageUrl={`/${featuredImage}`}
2424
/>
2525
<Masthead
2626
trackingCategory={tracking.category.blog_archive}

src/pages/blog/tags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const TagsPage: React.FC<PageProps<PostsGroupByTagsQuery>> = ({
2323
<Head
2424
url={location.href}
2525
pageType={"website"}
26-
imageUrl={`${location.protocol}//${location.host}/${featuredImage}`}
26+
imageUrl={`/${featuredImage}`}
2727
/>
2828
<Masthead
2929
trackingCategory={tracking.category.blog_archive}

src/pages/cookie-policy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const CookiePolicy: React.FC<PageProps> = ({ location }) => {
3333
<Head
3434
url={location.href}
3535
pageType={"website"}
36-
imageUrl={`${location.protocol}//${location.host}/${featuredImage}`}
36+
imageUrl={`/${featuredImage}`}
3737
/>
3838
<Masthead
3939
trackingCategory={tracking.category.cookie_policy}

src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const HomePage: React.FC<PageProps> = ({ location }) => {
3737
<Head
3838
url={location.href}
3939
pageType={"profile"}
40-
imageUrl={`${location.protocol}//${location.host}/${featuredImage}`}
40+
imageUrl={`/${featuredImage}`}
4141
/>
4242
<div
4343
id="profile-introduction"

src/pages/privacy-policy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const PrivacyPolicy: React.FC<PageProps> = ({ location }) => {
3333
<Head
3434
url={location.href}
3535
pageType={"website"}
36-
imageUrl={`${location.protocol}//${location.host}/${featuredImage}`}
36+
imageUrl={`/${featuredImage}`}
3737
/>
3838
<Masthead
3939
trackingCategory={tracking.category.cookie_policy}

src/templates/blog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const Blog: React.FC<PageProps<BlogListQuery, BlogPageContext>> = ({
4141
<Head
4242
url={location.href}
4343
pageType={"website"}
44-
imageUrl={`${location.protocol}//${location.host}/${featuredImage}`}
44+
imageUrl={`/${featuredImage}`}
4545
/>
4646
<Masthead
4747
trackingCategory={tracking.category.blog_home}

src/templates/tag.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Tag: React.FC<PageProps<TagPostsQuery, TagPageContext>> = ({
2727
<Head
2828
url={location.href}
2929
pageType={"website"}
30-
imageUrl={`${location.protocol}//${location.host}/${featuredImage}`}
30+
imageUrl={`/${featuredImage}`}
3131
/>
3232
<Masthead
3333
trackingCategory={tracking.category.blog_archive}

0 commit comments

Comments
 (0)