From 2fc21bff0adc27d9374aa6b5f5011ca422df47d8 Mon Sep 17 00:00:00 2001 From: sajolida Date: Fri, 11 Sep 2020 13:50:24 -0400 Subject: [PATCH] --- doc/todo/support_Twitter_cards.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/todo/support_Twitter_cards.mdwn 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. -- 2.39.2