Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add social media meta info #384

Open
greggman opened this issue Mar 8, 2024 · 0 comments
Open

Add social media meta info #384

greggman opened this issue Mar 8, 2024 · 0 comments
Labels
website issue Issue with the website, not samples themselves

Comments

@greggman
Copy link
Collaborator

greggman commented Mar 8, 2024

It would be nice if, when sharing a link, a thumbnail appeared.

The thumbnail should be 1200x630

Here's some example code to put into the the root index.html

<meta name="description" content="webgpu samples">
<meta name="keywords" content="webgpu graphics">
<meta name="thumbnail" content="https://webgpu.github.io/webgpu-samples/path/to/thumbnail.jpg">

<meta property="og:title" content="WebGPU Samples">
<meta property="og:type" content="website">
<meta property="og:image" content="https://webgpu.github.io/webgpu-samples/path/to/thumbnail.jpg">
<meta property="og:description" content="WebGPU Samples">
<meta property="og:url" content="https://webgpu.github.io/webgpu-samples/">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:domain" content="webgpu.github.io">
<meta name="twitter:title" content="WebGPU Samples">
<meta name="twitter:url" content="https://webgpu.github.io/webgpu-samples/">
<meta name="twitter:description" content="WebGPU Samples">
<meta name="twitter:image:src" content="https://webgpu.github.io/webgpu-samples/path/to/thumbnail.jpg">
@kainino0x kainino0x added the website issue Issue with the website, not samples themselves label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
website issue Issue with the website, not samples themselves
Projects
None yet
Development

No branches or pull requests

2 participants