Skip to content

Instantly share code, notes, and snippets.

@joshhepworth
Last active November 27, 2017 16:12
Show Gist options
  • Save joshhepworth/3208bc411bdcc4cc3656ea923835cc8a to your computer and use it in GitHub Desktop.
Save joshhepworth/3208bc411bdcc4cc3656ea923835cc8a to your computer and use it in GitHub Desktop.
<!-- Update html tag to include the itemscope and itemtype attributes for Article-ish items -->
<html itemscope itemtype="http://schema.org/Article">
<!-- In the Head Tag -->
<meta name="description" content="Page description. No longer than 155 characters." />
<!-- Schema.org markup for Google, Facebook, General Sharing -->
<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">
<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, i.e. Moz" />
<meta property="article:published_time" content="2013-09-17T05:59:00+01:00" />
<!-- Twitter Card data, if reasonable, this is much less necessary -->
<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">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment