zarr-developers / zeps

Zarr Enhancement Proposals
https://zarr.dev/zeps
Creative Commons Zero v1.0 Universal
12 stars 15 forks source link

Opengraph metadata is not generated dynamically for each page #4

Closed rabernat closed 2 years ago

rabernat commented 2 years ago

Having proper opengraph metadata is very important for linking to content on social media. It allows sites like twitter and facebook to generate "cards" for links.

The current Zep site exposes open-graph metadata, but it appears to be non-specific. For example, on https://zarr.dev//zeps/zeps/draft/ZEP0001.html, we get the following (from https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fzarr.dev%2F%2Fzeps%2Fzeps%2Fdraft%2FZEP0001.html)

property value
og:url https://zarr.dev/zeps/zeps/draft/ZEP0001.html
og:type website
og:title ZEP0001
og:locale { "locale": "en_us" }
og:description Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
og:site_name ZEP
og:updated_time 1653745818

If I share this website on twitter, it will look like this:

image

(via https://cards-dev.twitter.com/validator)

It would be ideal if the description field could be populated correctly somehow. This page contains some information about how to do that: https://jekyll.github.io/jekyll-seo-tag/usage/

MSanKeys963 commented 2 years ago

Thanks for pointing this out @rabernat. I've fixed this in #5.