cerner / cerner.github.io

Cerner Engineering blog
https://engineering.cerner.com
14 stars 28 forks source link

Add Open Graph image tag to improve link sharing #163

Closed cchesser closed 3 years ago

cchesser commented 3 years ago

When sharing links to our site, we can improve how other tools (Twitter, Facebook) represent the page, but adding in some basic Open Graph metatags (like img):

<meta property="og:image" content="https://ia.media-imdb.com/images/rock.jpg" />

https://ogp.me/

We currently add this with our theme, which could include the image tag:

<meta property="og:description" content="a blog by engineers, for engineers" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://engineering.cerner.com/" />
<meta property="og:updated_time" content="2020-09-24T00:00:00+00:00" />

Since we do image processing today on our blog pages, this may be a nice inclusion for blog posts. We can have a fixed default one include (Cerner's logo).