Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd social media meta tags #1960
Comments
andrewdavidwong
added
enhancement
P: minor
C: website
labels
May 5, 2016
andrewdavidwong
added this to the
Documentation/website milestone
May 5, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Can you elaborate? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
May 7, 2016
Member
Opengraph, structured data, http://ogp.me/. The metadata for various (sub) web pages. The ones that describe the preview image, excerpt text, product name, price and whatnot.
I recommend using the following linters:
- https://developers.facebook.com/tools/debug/
- https://cards-dev.twitter.com/validator
- https://developers.google.com/structured-data/testing-tool/
Since this has been implemented on the Whonix website (that uses entirely different content generators, mediawiki, wordpress, phabricator, discourse), I may be a bit of help with these metadata. Can do a bit testing and question/answer on the topic.
|
Opengraph, structured data, http://ogp.me/. The metadata for various (sub) web pages. The ones that describe the preview image, excerpt text, product name, price and whatnot. I recommend using the following linters:
Since this has been implemented on the Whonix website (that uses entirely different content generators, mediawiki, wordpress, phabricator, discourse), I may be a bit of help with these metadata. Can do a bit testing and question/answer on the topic. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kalkin
May 7, 2016
Member
I did a microdata project some time ago and I would recommend using https://schema.org instead of opengraph, because it's more widely(?) supported. You can also express the schema.org vocabulary with RDFa
|
I did a microdata project some time ago and I would recommend using https://schema.org instead of opengraph, because it's more widely(?) supported. You can also express the schema.org vocabulary with RDFa |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
akuckartz
commented
May 7, 2016
|
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Why not both? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kalkin
May 7, 2016
Member
@andrewdavidwong You can do both. As far as I'm not mistaken OpenGraph also uses RDFa with own namespace/vocabulary, this will get cumbersome very fast if you do it by hand. If you generate it automatically there might be cases where you can't generate both vocabularies data without some special handling for each vocabulary, i.e. when you need to insert empty/hidden tags which only contain data. It's definitely doable, but cumbersome and is more effort.
|
@andrewdavidwong You can do both. As far as I'm not mistaken OpenGraph also uses RDFa with own namespace/vocabulary, this will get cumbersome very fast if you do it by hand. If you generate it automatically there might be cases where you can't generate both vocabularies data without some special handling for each vocabulary, i.e. when you need to insert empty/hidden tags which only contain data. It's definitely doable, but cumbersome and is more effort. |
andrewdavidwong commentedMay 5, 2016
No description provided.