Skip to content

Commit af3c88a

Browse files
authored
Merge pull request #44 from LayoutitStudio/codex/social-og-image-20260701
Update social preview image
2 parents 59d9717 + b2f0def commit af3c88a

4 files changed

Lines changed: 28 additions & 9 deletions

File tree

index.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,23 @@
5050
property="og:description"
5151
content="Play a browser Quake port rendered as inspectable HTML and CSS 3D geometry through PolyCSS, with no WebGL or canvas renderer."
5252
/>
53-
<meta property="og:image" content="https://cssquake.com/assets/cssquake-social.webp" />
53+
<meta property="og:image" content="https://cssquake.com/assets/cssquake-social-20260701.png" />
54+
<meta property="og:image:type" content="image/png" />
55+
<meta property="og:image:width" content="1200" />
56+
<meta property="og:image:height" content="630" />
57+
<meta property="og:image:alt" content="cssQuake gameplay running in the browser with inspectable HTML and CSS geometry." />
58+
<meta property="og:image" content="https://cssquake.com/assets/cssquake-social-20260701.webp" />
5459
<meta property="og:image:type" content="image/webp" />
55-
<meta property="og:image:width" content="2075" />
56-
<meta property="og:image:height" content="1000" />
60+
<meta property="og:image:width" content="1200" />
61+
<meta property="og:image:height" content="630" />
5762
<meta property="og:image:alt" content="cssQuake gameplay running in the browser with inspectable HTML and CSS geometry." />
5863
<meta name="twitter:card" content="summary_large_image" />
5964
<meta name="twitter:title" content="cssQuake - Powered by PolyCSS" />
6065
<meta
6166
name="twitter:description"
6267
content="Play a browser Quake port rendered as inspectable HTML and CSS 3D geometry through PolyCSS, with no WebGL or canvas renderer."
6368
/>
64-
<meta name="twitter:image" content="https://cssquake.com/assets/cssquake-social.webp" />
69+
<meta name="twitter:image" content="https://cssquake.com/assets/cssquake-social-20260701.png" />
6570
<script type="application/ld+json">
6671
{
6772
"@context": "https://schema.org",
@@ -73,7 +78,10 @@
7378
"gamePlatform": "Web browser",
7479
"playMode": ["SinglePlayer", "MultiPlayer"],
7580
"operatingSystem": "Any",
76-
"image": "https://cssquake.com/assets/cssquake-social.webp",
81+
"image": [
82+
"https://cssquake.com/assets/cssquake-social-20260701.png",
83+
"https://cssquake.com/assets/cssquake-social-20260701.webp"
84+
],
7785
"codeRepository": "https://github.com/LayoutitStudio/cssQuake"
7886
}
7987
</script>

src/assets/cssquake-social.png

-48.9 KB
Loading

src/assets/cssquake-social.webp

-57.5 KB
Loading

src/prepare/assets.mjs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,19 @@ const quakeAssetOutputDir = quakeUseVersionedAssetRoot
5454
? path.join(quakeOutputDir, quakeAssetVersion)
5555
: quakeOutputDir;
5656
const legacyQuakeOutputDir = path.join(generatedPublicDir, "local/quake");
57-
const socialImageSourcePath = path.join(projectRoot, "src/assets/cssquake-social.webp");
58-
const socialImageOutputPath = path.join(generatedPublicDir, "assets/cssquake-social.webp");
57+
const socialImageOutputBaseName = "cssquake-social-20260701";
58+
const socialImageStaticPublicAssets = [
59+
[
60+
path.join(projectRoot, "src/assets/cssquake-social.png"),
61+
path.join(generatedPublicDir, `assets/${socialImageOutputBaseName}.png`),
62+
],
63+
[
64+
path.join(projectRoot, "src/assets/cssquake-social.webp"),
65+
path.join(generatedPublicDir, `assets/${socialImageOutputBaseName}.webp`),
66+
],
67+
];
5968
const staticPublicAssets = [
60-
[socialImageSourcePath, socialImageOutputPath],
69+
...socialImageStaticPublicAssets,
6170
[path.join(projectRoot, "src/assets/favicon.ico"), path.join(generatedPublicDir, "favicon.ico")],
6271
[path.join(projectRoot, "src/site/robots.txt"), path.join(generatedPublicDir, "robots.txt")],
6372
[path.join(projectRoot, "src/site/sitemap.xml"), path.join(generatedPublicDir, "sitemap.xml")],
@@ -996,7 +1005,9 @@ try {
9961005
console.log(`Wrote ${path.relative(projectRoot, hudNumbersOutputPath)}`);
9971006
console.log(`Wrote ${path.relative(projectRoot, hudDamageNumbersOutputPath)}`);
9981007
console.log(`Wrote ${path.relative(projectRoot, hudOutputPath)}`);
999-
console.log(`Wrote ${path.relative(projectRoot, socialImageOutputPath)}`);
1008+
for (const [, outputPath] of socialImageStaticPublicAssets) {
1009+
console.log(`Wrote ${path.relative(projectRoot, outputPath)}`);
1010+
}
10001011
console.log(`Wrote ${path.relative(projectRoot, mainMenuOutputPath)}`);
10011012
console.log(`Wrote ${path.relative(projectRoot, mainMenuPlaqueOutputPath)}`);
10021013
console.log(`Wrote ${path.relative(projectRoot, mainMenuTitleOutputPath)}`);

0 commit comments

Comments
 (0)