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):
–
–
https://www.etsy.com/in-en/listing/224827437/chocolate-chip-cookie-bean-bags-set-of-3
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