1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2024-11-21 18:16:33 +02:00

Add metadata for images

This commit is contained in:
Bart Huijgen 2024-07-26 20:14:17 +02:00
parent 0b357aa028
commit 0bc6db012f
2 changed files with 22 additions and 0 deletions

View File

@ -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"

View File

@ -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"