Skip to content

Instantly share code, notes, and snippets.

@cleverdevil
Created August 20, 2015 16:11
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 cleverdevil/809be6b3c20351416bc9 to your computer and use it in GitHub Desktop.
Save cleverdevil/809be6b3c20351416bc9 to your computer and use it in GitHub Desktop.
Sample h-review microformat for comment
<article class="h-review known-review">
<h2 class="p-name">
<a class="u-url" href="http://cleverdevil.io/2015/blood-rites">
<span class="p-category">Book</span> Review: Blood Rites, by Jim Butcher
</a>
</h2>
<div class="p-item h-product">
<h4 class="p-name">
<a class="u-url" href="https://www.goodreads.com/book/show/99383.Blood_Rites">Blood Rites</a>
</h4>
<span class="p-rating">4</span> out of 5 stars.
<img class="u-photo" src="http://www.jim-butcher.com/pics/products/BloodRites_Paperback_14-120.jpg">
<div class="e-description">
<p>
Blood Rites is the sixth book in The Dresden Files series by Jim
Butcher. I liked it a lot! Blah, blah, blah more things to say.
</p>
</div>
</div>
</article>
<!--
Open Questions:
1. Should I embed a `p-reviwer` element? My `h-card` already exists on the
page, but its outside of the `h-review` containing element. I hate to
repeat myself :/
2. Does my use here of `h-product` as the `p-item` for the `h-review`
make sense? I'm playing a bit fast and loose with the rules, I have a
feeling.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment