hReview in Microformats 2
I’m working on a few themes for this blogging engine, both for this blog and 50 Words. I haven’t migrated that one yet, because I’m trying to get a handle on how to solve the issue of preserving (or upgrading) the formatted reviews over there.
Since I found h-review in microformats2, I wanted to post my new h-review format, as much for my own reference as for anyone else’s.
Using the same example from last time:
<div class="h-review">
<p>Published
<time class="dt-reviewed"
datetime="2010-03-01 03:03:00">Mar 01, 2010</time>
by <a class="p-reviewer h-card"
href="/people/mr-nau/">Mr. Nau</a>
</p>
<p class="e-description">
Rosamund and Benjamin Zander collaborate in this
insightful self-improvement book that outlines
overcoming obstacles and increasing motivation
with simple, effective tips. Whether the reader
is trying to improve their productivity at work
or struggling to create a masterpiece artistic
work, many of the principles here will inspire
consistent action.
</p>
<p>
<strong>Grade</strong>:
<data class="p-rating" value="5">A</data>.
</p>
<div class="h-product">
<p><strong>Amazon</strong>:
<a class="h-item"
href="http://www.amazon.com/dp/0142001104/">
Rosamund Stone Zander & Benjamin Zander —
<em>The Art of Possibility: Transforming
Personal and Professional Life</em></a>
</p>
</div>
</div>
So, in Markdown, that'd become:
Title: Rosamund & Benjamin Zander - The Art of Possibility (2002)
Author: Mr. Nau
Date: 2010-03-01 03:02
Category: Reviews
Tags: Books
Type: h-review
p-rating: 5
p-rating-content: A
h-item-url: http://www.amazon.com/dp/01420001104/
h-item-content: Rosamund Stone Zander & Benjamin Zander - The Art\
of Possibility: Transforming Personal and Professional Life
Rosamund and Benjamin Zander collaborate in this insightful
self-improvement book that outlines overcoming obstacles
and increasing motivation with simple, effective tips. Whether
the reader is trying to improve their productivity at work or
struggling to create a masterpiece artistic work, many of the
principles here will inspire consistent action.
That doesn’t look so bad. It looks more semantic and takes advantage of a couple of features of HTML5. The nice thing is that if the Markdown format I’ve posted above works, I should be able to migrate most of my posts (all 1028 of them) in a relatively short period of time.
Comments !