Skip to content

Commit

Permalink
Add metadata for images
Browse files Browse the repository at this point in the history
  • Loading branch information
barthuijgen committed Jul 26, 2024
1 parent 0b357aa commit 0bc6db0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/blueprints/src/components/blueprint/Blueprint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ export const BlueprintSubPage: React.FC<BlueprintProps> = ({
<title>
{(blueprint_page.title ? `${blueprint_page.title} - ` : "") + "Factorio blueprints"}
</title>
<meta
property="og:title"
content={
(blueprint_page.title ? `${blueprint_page.title} - ` : "") + "Factorio blueprints"
}
key="title"
/>
<meta
property="og:image"
content={`https://storage.googleapis.com/blueprint-images/300/${blueprint_page.image_hash}.webp`}
/>
</Head>
<Panel
className="image"
Expand Down
11 changes: 11 additions & 0 deletions apps/blueprints/src/components/blueprint/BlueprintBook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,17 @@ export const BlueprintBookSubPage: React.FC<BlueprintBookSubPageProps> = ({
<title>
{(blueprint_page.title ? `${blueprint_page.title} - ` : "") + "Factorio blueprints"}
</title>
<meta
property="og:title"
content={
(blueprint_page.title ? `${blueprint_page.title} - ` : "") + "Factorio blueprints"
}
key="title"
/>
<meta
property="og:image"
content={`https://storage.googleapis.com/blueprint-images/300/${blueprint_page.image_hash}.webp`}
/>
</Head>
<Panel
className="child-tree"
Expand Down

0 comments on commit 0bc6db0

Please sign in to comment.