Skip to content

Instantly share code, notes, and snippets.

@CillianMyles
Last active April 26, 2018 09:45
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 CillianMyles/88c2c6b3412283e8f1cbc7c312562ef3 to your computer and use it in GitHub Desktop.
Save CillianMyles/88c2c6b3412283e8f1cbc7c312562ef3 to your computer and use it in GitHub Desktop.
Social Media Meta Tag Template: Article
<!-- Update your html tag to include the itemscope and itemtype attributes. -->
<html itemscope itemtype="http://schema.org/Article">
<!-- Place this data between the <head> tags of your website -->
<title>Page Title. Maximum length 60-70 characters</title>
<meta name="description" content="Page description. No longer than 155 characters."/>
<!-- Schema.org markup for Google+ -->
<meta itemprop="name" content="The Name or Title Here">
<meta itemprop="description" content="This is the page description">
<meta itemprop="image" content="http://www.example.com/image.jpg">
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:title" content="Page Title">
<meta name="twitter:description" content="Page description less than 200 characters">
<meta name="twitter:creator" content="@author_handle">
<!-- Twitter summary card with large image must be at least 280x150px -->
<meta name="twitter:image:src" content="http://www.example.com/image.jpg">
<!-- Open Graph data -->
<meta property="og:title" content="Title Here"/>
<meta property="og:type" content="article"/>
<meta property="og:url" content="http://www.example.com/"/>
<meta property="og:image" content="http://example.com/image.jpg"/>
<meta property="og:description" content="Description Here"/>
<meta property="og:site_name" content="Site Name"/>
<meta property="article:published_time" content="2018-04-19T18:30:00+01:00"/>
<meta property="article:modified_time" content="2018-04-19T18:30:00+01:00"/>
<meta property="article:section" content="Article Section"/>
<meta property="article:tag" content="Article Tag"/>
<meta property="fb:admins" content="FB_USER_ID"/>
<meta property="fb:app_id" content="FB_APP_ID"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment