eleventy-plugin-embed-tweet icon indicating copy to clipboard operation
eleventy-plugin-embed-tweet copied to clipboard

Add additional customization settings

Open huphtur opened this issue 5 years ago • 1 comments

Possible to pass settings to the autoEmbed (click on set customization options on this page to see the embed settings)?

  • Theme: Light or Dark (default to light).
  • Language: Default to Auto Detect I assume.
  • Hide Conversation: True or False (default to false).
  • Do Not Track: True or False. Default to false please!

huphtur avatar Aug 18 '20 23:08 huphtur

So we only invoke the twitter publish API as a fallback if we can't actually hit the server and build our own. After we get the json payload, everything is built individually.

  • Light/Dark styles won't come for free, but certainly should be able to code up in CSS.
  • Hide conversation will be a little trickier since we'll have to template out the conversation based on the data. Plausible, but might decouple from the other customizations
  • Do not track - we can pass this in the fallback scenario, but currently nothing is tracked because there's no client side JS - so twitter doesn't get a say

Thanks for the suggestions, I can definitely see some of the customization options making their way in

KyleMit avatar Aug 19 '20 13:08 KyleMit