sepiariver
4/30/2015 - 1:35 AM

Twitter/OG Meta Tags for MODX

Twitter/OG Meta Tags for MODX

        <!-- Open Graph Tags -->
        <meta property="og:site_name" content="[[++site_name]]" />
        <meta property="og:type" content="article" />
        <meta property="og:title" content="[[*longtitle:default=`[[*pagetitle]]`]]" />
        <meta property="og:description" content="[[*description:default=`[[++site_description]]`]]" />
        <meta property="og:url" content="[[~[[*id]]? &scheme=`full`]]" />
        <meta property="og:image" content="[[*image:default=`[[++site_image]]`]]" />
        <meta property="fb:app_id" content="[[++fb_app_id]]" />
        <meta property="article:publisher" content="[[++fb_url]]" />
        <!-- Twitter Tags -->
        <meta name="twitter:site" content="@[[++tw_username]]" />
        <meta name="twitter:title" content="[[*longtitle:default=`[[*pagetitle]]`]]" />
        <meta name="twitter:description" content="[[*description:default=`[[++site_description]]`]]" />
        <meta name="twitter:url" content="[[~[[*id]]? &scheme=`full`]]" />
        <meta name="twitter:image:src" content="[[*image:default=`[[++site_image]]`]]" />
        <meta name="twitter:card" content="summary_large_image" />
        <!-- Icons -->
        <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" sizes="16x16 24x24 32x32 48x48" />
        <link rel="icon" type="image/x-icon" href="favicon.ico" sizes="16x16 24x24 32x32 48x48" />
        <link rel="apple-touch-icon-precomposed" href="apple-touch-icon.png" />