Skip to content

Commit 581f937

Browse files
committed
website: add the social preview image and use absolute image URLs
The pages pointed og:image at /assets/og-sqlquack.png, which did not exist, and the home page and playground used a relative URL that many link unfurlers ignore. Add the 1200x630 card in the style of the other SQLStack sites, point og:image and twitter:image at https://sqlquack.io/assets/og-sqlquack.png on every page, and give the docs pages the same image alt text.
1 parent 559fc80 commit 581f937

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎website/astro.config.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default defineConfig({
2424
{ tag: 'meta', attrs: { property: 'og:image', content: 'https://sqlquack.io/assets/og-sqlquack.png' } },
2525
{ tag: 'meta', attrs: { property: 'og:image:width', content: '1200' } },
2626
{ tag: 'meta', attrs: { property: 'og:image:height', content: '630' } },
27+
{ tag: 'meta', attrs: { property: 'og:image:alt', content: 'SQLQuack: a Snowflake SQL compiler that translates to DuckDB, or refuses to guess.' } },
2728
{ tag: 'meta', attrs: { name: 'twitter:image', content: 'https://sqlquack.io/assets/og-sqlquack.png' } },
2829
],
2930
social: [
135 KB
Loading

‎website/public/index.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
<meta property="og:title" content="SQLQuack · Run Snowflake SQL locally. Verified results, or a clear no" />
1212
<meta property="og:description" content="A SQLGlot alternative in Rust that would rather reject your SQL than return the wrong answer." />
1313
<meta property="og:type" content="website" />
14-
<meta property="og:image" content="/assets/og-sqlquack.png" />
14+
<meta property="og:image" content="https://sqlquack.io/assets/og-sqlquack.png" />
1515
<meta property="og:image:width" content="1200" />
1616
<meta property="og:image:height" content="630" />
1717
<meta property="og:image:alt" content="SQLQuack: a Snowflake SQL compiler that translates to DuckDB, or refuses to guess." />
1818
<meta name="twitter:card" content="summary_large_image" />
19+
<meta name="twitter:image" content="https://sqlquack.io/assets/og-sqlquack.png" />
1920
<link rel="icon" type="image/png" sizes="128x128" href="/favicon.png" />
2021
<link rel="preload" href="/fonts/inter-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin />
2122
<link rel="stylesheet" href="/styles.css" />

‎website/public/playground/index.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
<meta property="og:title" content="SQLQuack · Snowflake SQL on DuckDB, or a clear no" />
1212
<meta property="og:description" content="A SQLGlot alternative in Rust that would rather reject your SQL than return the wrong answer." />
1313
<meta property="og:type" content="website" />
14-
<meta property="og:image" content="/assets/og-sqlquack.png" />
14+
<meta property="og:image" content="https://sqlquack.io/assets/og-sqlquack.png" />
1515
<meta property="og:image:width" content="1200" />
1616
<meta property="og:image:height" content="630" />
1717
<meta property="og:image:alt" content="SQLQuack: a Snowflake SQL compiler that translates to DuckDB, or refuses to guess." />
1818
<meta name="twitter:card" content="summary_large_image" />
19+
<meta name="twitter:image" content="https://sqlquack.io/assets/og-sqlquack.png" />
1920
<link rel="icon" type="image/png" sizes="128x128" href="/favicon.png" />
2021
<link rel="preload" href="/fonts/inter-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin />
2122
<link rel="stylesheet" href="/styles.css" />

0 commit comments

Comments
 (0)