Onebox now supports Twitter label meta tags

feedback

(Arpit Jalan) #1

I just added support for label1/data1 and label2/data2 properties found in Twitter Product card.

This change adds additional data in onebox, see it in action (notice the data in bottom corners):


If you want to see additional data like above in your site’s embed/onebox on Discourse, add following meta tags:

<meta name="twitter:label1" value="Label 1" />
<meta name="twitter:data1" value="Data 1" />
<meta name="twitter:label2" value="Label 2" />
<meta name="twitter:data2" value="Data 2" />

Onebox will pick up above values and will show them in a nicely formatted way.


This feature was inspired after reading this excellent article by @mathowie :heart: