Skip to content

Instantly share code, notes, and snippets.

@adrienne
Created September 16, 2014 11:07
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 adrienne/8d57c4283ba6cd610f62 to your computer and use it in GitHub Desktop.
Save adrienne/8d57c4283ba6cd610f62 to your computer and use it in GitHub Desktop.
Some markup patterns (including schema.org structured data)
<article itemscope itemtype="http://schema.org/BlogPosting">
<header>
<a itemprop="url" href="http://blah.org">
<img itemprop="image" src="/images/image.jpg" />
<h1 itemprop="name headline">Post Name</h1>
</a>
</header>
<div itemprop="articleBody">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc mi orci, malesuada elementum accumsan ut, porttitor at dolor.
</div>
<footer>
<dl>
<dt>Author</dt>
<dd><a itemprop="author" href="">testauthor</a></dd>
<dt>Date Posted</dt>
<dd><time datetime="2014-09-15" itemprop="datePublished">15 September, 2014</time></dd>
<dt>Categories</dt>
<dd><a itemprop="articleSection" href="">cat1</a></dd>
<dd><a itemprop="articleSection" href="">cat2</a></dd>
<dt>Tags</dt>
<dd itemprop="keywords"><a href="blah">blah</a>, <a href="blah2">blah2</a></dd>
</dl>
</footer>
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment