Skip to content

Instantly share code, notes, and snippets.

@jonnybarnes
Created August 11, 2014 11:58
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 jonnybarnes/8badbaa106ba7fa30194 to your computer and use it in GitHub Desktop.
Save jonnybarnes/8badbaa106ba7fa30194 to your computer and use it in GitHub Desktop.
In the first case items->props->published is human-readable, in the second items-porps-published is machine-readable
<!doctype html>
<html>
<body class="h-entry">
<div class="h-card p-author">
<img class="u-photo photo" src="http://joebloggs.com/photo.png" alt="">
<a class="p-name u-url url" href="http://joebloggs.com/"><span class="p-given-name given-name">Joe</span> <span class="p-family-name family-name">Bloggs</span></a>
</div>
<div class="p-in-reply-to h-cite">
<p>
<a class="u-url" rel="in-reply-to" href="http://billy.com/notes/2014/06/22/4/">
<time class="dt-published" datetime="2014-06-22T22:59:13-0700">2014-06-22 22:59</time></a>
</p>
<p class="p-author h-card">
<img class="u-photo" src="http://billy.com/images/billy.png" alt="" />
<a class="u-url p-name" href="http://billy.com/">Billy</a>
</p>
<div class="p-summary p-name e-content">
<img alt="" class="u-photo" src="http://billy.com/notes/2014/06/22/4/files/photo.jpg" />
Not bad...
</div>
</div>
<div class="p-name entry-title p-summary summary e-content entry-content">
<p><a class="auto-link h-x-username" href="https://twitter.com/billy">@billy</a> Looks great</p> - <time class="dt-published" datetime"2014-06-23T14:15:16+0100">2014-06-23 14:15</time>
</div>
</body>
</html>
<!doctype html>
<html>
<body class="h-entry h-as-repost">
<div class="h-card p-author">
<img class="u-photo photo" src="http://joebloggs.com/photo.png" alt="">
<a class="p-name u-url url" href="http://joebloggs.com/"><span class="p-given-name given-name">Joe</span> <span class="p-family-name family-name">Bloggs</span></a>
</div>
<p class="e-content"><a class="u-repost u-repost-of" href="http://billy.com/notes/2014/06/22/4/">Billy's note</a> - reposted <time class="dt-published" datetime="2014-06-24T12:13:14+0000">2014-06-24 12:13</time></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment