From: sajolida Date: Fri, 11 Sep 2020 17:50:24 +0000 (-0400) Subject: (no commit message) X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/2fc21bff0adc27d9374aa6b5f5011ca422df47d8 --- diff --git a/doc/todo/support_Twitter_cards.mdwn b/doc/todo/support_Twitter_cards.mdwn new file mode 100644 index 000000000..4b14c97a9 --- /dev/null +++ b/doc/todo/support_Twitter_cards.mdwn @@ -0,0 +1,11 @@ +[Twitter cards](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary-card-with-large-image) work by using `` tags with names that include a colon: `twitter:card`, `twitter:site`, `twitter:creator`, etc. + +The current parsing of ikiwiki's directive doesn't support using colons in names. + +This patch fixes it. + +Disclaimer: I don't know anything about Perl or the internals of ikiwiki but I managed to "make it work". It might still be flawed in many ways. + +Twitter is not really picky about HTML and actually parses `` tags outside of the `` section, so there's currently a workaround. + +That's what I did on the [donation page of Tails](https://gitlab.tails.boum.org/tails/tails/-/commit/6dbde9fa926e574b3bab4170caf65fe3c394fe48) for now.