tangled
alpha
login
or
join now
ptr.pet
/
endpoint
0
fork
atom
data endpoint for entity 90008 (aka. a website)
0
fork
atom
overview
issues
pulls
pipelines
fix og image, set theme-color meta tag
ptr.pet
2 months ago
d1cd3e20
b161e832
verified
This commit was signed with the committer's
known signature
.
ptr.pet
SSH Key Fingerprint:
SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw=
0/0
Waiting for spindle ...
+8
-4
2 changed files
expand all
collapse all
unified
split
eunomia
src
lib
constellation.ts
routes
(site)
+layout.svelte
+3
-2
eunomia/src/lib/constellation.ts
···
704
704
705
705
console.log('generating OG image...');
706
706
(async () => {
707
707
-
const resized_svg = await sharp(OUTPUT_FILE).resize({ height: 256 }).toBuffer();
707
707
+
const h = 630;
708
708
+
const resized_svg = await sharp(OUTPUT_FILE).resize({ height: h }).toBuffer();
708
709
sharp(DUST_FILE)
709
709
-
.resize({ height: 256 })
710
710
+
.resize({ height: h })
710
711
.composite([{ input: resized_svg }])
711
712
.png()
712
713
.toFile(OG_IMAGE_FILE);
+5
-2
eunomia/src/routes/(site)/+layout.svelte
···
61
61
62
62
<svelte:head>
63
63
<title>{title}</title>
64
64
+
<meta name="twitter:card" content="summary_large_image" />
65
65
+
<meta name="twitter:image" content="https://gaze.systems/_api/background/og-image.png" />
64
66
<meta property="og:site_name" content="gaze.systems" />
65
67
<meta property="og:url" content="https://gaze.systems/" />
66
68
<meta property="og:image" content="https://gaze.systems/_api/background/og-image.png" />
67
69
<meta property="og:image:type" content="image/png" />
68
68
-
<meta property="og:image:width" content="455" />
69
69
-
<meta property="og:image:height" content="256" />
70
70
+
<meta property="og:image:width" content="1200" />
71
71
+
<meta property="og:image:height" content="630" />
72
72
+
<meta name="theme-color" content="#ff3eb7" />
70
73
</svelte:head>
71
74
72
75
<img