SimpleArmory icon indicating copy to clipboard operation
SimpleArmory copied to clipboard

Support Link Previews via Open Graph

Open kevinclement opened this issue 1 year ago • 2 comments

When people add links to site in discord, discord will try to render a nice preview. For SA that isn't available so its just a lame login image.

image

I believe if we add open graph support to the page it should make this nicer. See https://ogp.me/.

kevinclement avatar Jan 06 '24 23:01 kevinclement

Love this, I had no idea how this preview could be changed. Will it a problem that ~most~ all of the logic and rendering is happening client-side?

maxdekrieger avatar Jan 07 '24 15:01 maxdekrieger

Love this, I had no idea how this preview could be changed. Will it a problem that ~most~ all of the logic and rendering is happening client-side?

Shouldn't be a problem at all. I've got static webpages that are served just with HTML using GitHub Pages, and Open Graph works for them

Edit: actually it depends on what information you want in the cards. Basic information is fine, but dynamic information I think would need to be generated on a server. The information is pulled from the HTML, scripts aren't executed so the info can't be generated from scripts afaik

d-ellis avatar Feb 14 '24 19:02 d-ellis