v2.svelte.dev icon indicating copy to clipboard operation
v2.svelte.dev copied to clipboard

Custom images for open graph etc

Open Rich-Harris opened this issue 7 years ago • 3 comments

maybe a bit pie-in-the-sky but it'd be nice to replace this sort of thing...

screen shot 2018-06-28 at 8 50 13 am

...with this sort of thing...

preview

...or this sort of thing:

code

Rich-Harris avatar Jun 28 '18 12:06 Rich-Harris

For this, you would need to have set the value for <meta content="https://svelte.technology/images/twitter-card.png" name="twitter:image"> dynamically.

Maybe you can ask how CodePen.io do it on their end ;-)

Ryuno-Ki avatar Jun 30 '18 21:06 Ryuno-Ki

@Rich-Harris do you have any ideas on how to proceed with this?

I was thinking maybe running a carbon service, similar to how we have bundle.run currently. And then pointing the open graph meta tag to the service

Example repl gets rendered like this

ekhaled avatar Aug 11 '18 04:08 ekhaled

Ops, I haven't seen this before posting, I have outlined some tentative code in #388.

mindrones avatar Dec 06 '18 23:12 mindrones