gbdev / rgbds-www

RGBDS website, hosting documentation and install instructions. Built with Docusaurus, content from RGBDS man pages.
https://rgbds.gbdev.io
Other
7 stars 8 forks source link

Set a social media preview image, instead of the logo icon #64

Open Rangi42 opened 2 weeks ago

Rangi42 commented 2 weeks ago

People often leave previews in Discord links, and https://rgbds.gbdev.io appears as its logo image, a low-res square RGB icon.

Looking at GitHub's "social media preview" feature, this HTML header content would suffice for Discord and Twitter at least:

<meta name="twitter:image:src" content="https://rgbds.gbdev.io/preview.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@github" />
<meta name="twitter:title" content="RGBDS: ..." />
<meta name="twitter:description" content="RGBDS: ..." />

<meta property="og:image" content="https://rgbds.gbdev.io/preview.png" />
<meta property="og:type" content="object" />
<meta property="og:site_name" content="GitHub" />
<meta property="og:url" content="https://rgbds.gbdev.io" />
<meta property="og:image:alt" content="RGBDS: ..." />
<meta property="og:title" content="RGBDS: ..." />
<meta property="og:description" content="RGBDS: ..." />

An example of its current appearance:

image

avivace commented 2 weeks ago

What could we put instead of the logo?

Rangi42 commented 2 weeks ago

An entire logo including the "RGBDS" text would be wider, so less relatively tall.

avivace commented 2 weeks ago

image Something like this?

Rangi42 commented 2 weeks ago

Or with less margin: image

ISSOtm commented 2 weeks ago

Agreed, that's a great idea!