Skip to content

Instantly share code, notes, and snippets.

@DESIGNfromWITHIN
Created September 18, 2013 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DESIGNfromWITHIN/6609045 to your computer and use it in GitHub Desktop.
Save DESIGNfromWITHIN/6609045 to your computer and use it in GitHub Desktop.
Flexibility 4 meta tag options
[[*flex_socialType:notempty=`
<meta property="og:type" content="[[*flex_socialType]]">
`]]
[[*flex_socialType:isequalto=`book`:then=`
<meta property="book:author" content="[[*flex_socialAuthorUrl]]">
`]]
[[*flex_socialType:isequalto=`article`:then=`
<meta property="article:author" content="[[*flex_socialAuthorUrl]]">
`]]
<meta property="og:title" name="twitter:title" content="[[*pagetitle]]">
<meta property="og:url" name="twitter:url" content="[[++site_url]][[*uri]]">
<meta name="twitter:description" property="og:description" content="[[*description:empty=`[[*longtitle]]`]]" />
[[*flex_socialTwitterCardType:notempty=`
<meta name="twitter:card" content="[[*flex_socialTwitterCardType]]">
`]]
[[*flex_socialTwitterName:notempty=`
<meta name="twitter:creator" content="[[*flex_socialTwitterName]]">
`]]
[[*flex_socialTwitterCardType:is=`summary`:or:is=`summary_large_image`:or:is=`photo`:then=`
<meta name="twitter:image" property="og:image" content="[[++site_url]][[*flex_socialImage]]">
`]]
[[*flex_socialTwitterCardType:isequalto=`gallery`:then=`
<meta name="twitter:image0" content="[[++site_url]][[*flex_socialGalleryImage_1]]">
<meta name="twitter:image1" content="[[++site_url]][[*flex_socialGalleryImage_2]]">
<meta name="twitter:image2" content="[[++site_url]][[*flex_socialGalleryImage_3]]">
<meta name="twitter:image3" content="[[++site_url]][[*flex_socialGalleryImage_4]]">
`]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment