Fix Twitter share cards
Previewing http://cdli.utoronto.ca/artifacts/1 in https://cards-dev.twitter.com/validator shows the following:
This is missing the image, the og:image
meta tag should be an absolute URL, not a relative one. The og:url
URL is also wrong (wrong domain), so the current domain should be read somewhere from config. In the case of multiple deploys we also want to set the canonical URL, perhaps through cdli.network
depending on how we want to set it up. Last, a description could be generated from the data like what is done for the subtitle.
-
Set og:image using absolute url ( use current running domain, we can add it to env file) -
Reemploy automatically generated sentence at the top of single artifact view for the description field.
Edited by Émilie Pagé-Perron