CODE

Twitter & OpenGraph Schema

Simple Twitter & OpenGraph schema to add rich meta data for your pages for use with social media and other services.

v1.0.0
  1. Add to your template <head>:

    <!-- Treehouse CODE v1.0.0 -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="{{this.metaTitle}}">
    <meta name="twitter:description" content="{{this.metaDescription}}">
    <meta name="twitter:image" content="[...add your website here]{{this.OpenGraphProperties.image}}">
    
    <meta name="og:type" content="website">
    <meta name="og:title" content="{{this.metaTitle}}">
    <meta name="og:description" content="{{this.metaDescription}}">
    <meta name="og:image" content="[...add your website here]{{this.OpenGraphProperties.image}}">

Comments or questions? Head over to the Treepl CMS forum to discuss with the community.