Closed eric-wieser closed 2 years ago
This PR has been successfully deployed at http://leanprover-community.github.io/mathlib_docs_demo!
This PR has been successfully deployed at http://leanprover-community.github.io/mathlib_docs_demo!
The change looks good to me, feel free to merge once you're satisfied with it.
This PR has been successfully deployed at http://leanprover-community.github.io/mathlib_docs_demo!
It looks like facebook unfortunately just follows the redirect, but maybe twitter will be better behaved.
Seems to work on discord and twitter:
The idea here is to be able to share a
find
-style URL as generated by zulip, and have it show a social preview.This also corrects the wonky existing meta tags; the
og:*
fields belong inproperty
notname
, and twitter says we do not need the twitter ones too once we have those correct.Demonstration of this working:
https://www.opengraph.xyz/url/https%3A%2F%2Fleanprover-community.github.io%2Fmathlib_docs_demo%2Ffind%2Falgebra%2F/
https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fleanprover-community.github.io%2Fmathlib_docs_demo%2Ffind%2Falgebra
Note we can't test with https://cards-dev.twitter.com/validator, as
robots.txt
blacklists the doc demo site.