]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/todo/support_Twitter_cards.mdwn
4b14c97a93b63b547ea11be3435ddf0d6ccabe37
[git.ikiwiki.info.git] / doc / todo / support_Twitter_cards.mdwn
1 [Twitter cards](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary-card-with-large-image) work by using `<meta>` tags with names that include a colon: `twitter:card`, `twitter:site`, `twitter:creator`, etc.
3 The current parsing of ikiwiki's directive doesn't support using colons in names.
5 This patch fixes it.
7 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.
9 Twitter is not really picky about HTML and actually parses `<meta>` tags outside of the `<head>` section, so there's currently a workaround.
11 That's what I did on the [donation page of Tails](https://gitlab.tails.boum.org/tails/tails/-/commit/6dbde9fa926e574b3bab4170caf65fe3c394fe48) for now.