istio.io icon indicating copy to clipboard operation
istio.io copied to clipboard

Istio blogs should have a preview image

Open kfaseela opened this issue 1 year ago • 2 comments

Currently, all our documentation when posted in social media do not have a preview image. Our documentation infra can be enhanced by updating the theme to pull an image from the document if one exists.

For eg: https://twitter.com/IstioMesh/status/1749523008077668542

kfaseela avatar Mar 08 '24 20:03 kfaseela

source of that (and all) pages includes:

<meta property="og:image" content="https://raw.githubusercontent.com/istio/istio.io/master/static/img/istio-social.svg">

That used to be enough.

https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started may help explain.

We need to work that out b efore adding support for ustom cards.

craigbox avatar Mar 08 '24 22:03 craigbox

(A better fix might be to start using the provided [opengraph.html](https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/opengraph.html) and [twitter_cards.html](https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/twitter_cards.html) templates.)

craigbox avatar Mar 11 '24 00:03 craigbox