rob-murray / jekyll-twitter-plugin

A Liquid tag plugin for the Jekyll blogging engine that embeds Tweets, Timelines and more from Twitter API
MIT License
238 stars 30 forks source link

Toggle data cards option #26

Closed nickjj closed 7 years ago

nickjj commented 7 years ago

If you manually set <blockquote class="twitter-tweet" data-cards="hidden"> it will hide data cards. Is there any way to pass that into the {% twitter %} tag?

If I try to edit the cached version to include that, then it just writes out a new cache file and ignores the modified version.

rob-murray commented 7 years ago

Normally you would just pass cards=hidden as a parameter as described in the README but this does not seem to work as stated here. If you use the hide_media=true from the oembed api reference then that seems to work.

As mentioned in issue #25 the cached file is not intended to be edited.