Applied Stephen's Microformats Patch

Christopher Vollick [2011-12-13 00:09]
Applied Stephen's Microformats Patch

Assuming he did it right, my site is now all microformatty.
diff --git a/ b/
index f966fdc..f72444e 100644
--- a/
+++ b/
@@ -17,7 +17,7 @@ echo '</title>
 <div id="header">
-<h1> <a href=""> </a> </h1>
+<h1> <a rel="home" href=""> </a> </h1>

@@ -45,10 +45,14 @@ redo-ifchange "tagindex"
 grep "^$tag " < "tagindex" | cut -d ' ' -f 2- | tac | while read file; do
 	redo-ifchange "$file.converted"
 	title="$(./extract_headers "Title" < "$file.converted")"
-	echo '<li>'
-	echo "<h2> <a href='$file.html'>$title</a> </h2>"
+	echo '<li class="hentry">'
+	echo "<h2 class='entry-title'> <a rel='bookmark' href='$file.html'>$title</a> </h2>"
+	echo '<div class="entry-content">'
 	# Now spit out the body
 	sed '1,/^$/d' < "$file.converted"
+	echo '</div>'
 	echo '</li>'

diff --git a/ b/
index f232d23..badd192 100644
--- a/
+++ b/
@@ -30,7 +30,7 @@ echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3
 <div id=\"header\">
-<h1> <a href=\"\"> </a> </h1>
+<h1> <a rel=\"home\" href=\"\"> </a> </h1>
 echo "<div id=\"navigation\">"
 if [ -n "$prev" ]; then
@@ -45,22 +45,22 @@ echo "Tags:"
 echo "<ul>"
 for t in $tags; do
 	if [ "$t" = "$tag" ]; then
-		echo "<li class=\"current\"> <a href=\"index.html\"> $t </a> </li>"
+		echo "<li class=\"current\"> <a rel="index" href=\"index.html\"> $t </a> </li>"
 		echo "<li> <a href=\"../$t/index.html\"> $t </a> </li>"
 echo "</ul>"
 echo "</div>"
-echo "<div id=\"content\">"
-echo "<h1> $title </h1>
+echo "<div id=\"content\" class=\"hentry\">"
+echo "<h1 class=\"entry-title\"> $title </h1>
+<div class=\"entry-content\">$body</div>"
 echo "<dl id=\"dates\">"
 if [ "$created" = "$modified" ]; then
-	echo "<dt> Published: </dt> <dd> $created </dd>"
+	echo "<dt> Published: </dt> <dd class=\"published\"> $created </dd>"
-	echo "<dt> Originally Published: </dt> <dd> $created </dd>"
-	echo "<dt> Last Updated: </dt> <dd> $modified </dd>"
+	echo "<dt> Originally Published: </dt> <dd class=\"published\"> $created </dd>"
+	echo "<dt> Last Updated: </dt> <dd class=\"updated\"> $modified </dd>"
 echo "</dl>"
 echo "</div>
diff --git a/ b/
index 46ac6f2..2da2f60 100644
--- a/
+++ b/
@@ -29,18 +29,18 @@ for t in $tags; do
 echo "</ul></div>"

-echo '<div id="content">'
+echo '<div id="content" class="vcard">'

-echo '<img src="static/avatar.png" alt="avatar" class="avatar" />
-This is the website of Christopher Vollick.
+echo '<img src="static/avatar.png" alt="avatar" class="avatar photo" />
+This is the website of <span class="fn n"><span class="given-name">Christopher</span> <span class="family-name">Vollick</span></span>.
-<dt> GitHub: </dt> <dd> <a href=""> </a> </dd>
-<dt> Email: </dt> <dd> <a href=""> </a> </dd>
-<dt> Email: </dt> <dd> <a href=""> </a> </dd>
-<dt> XMPP: </dt> <dd> <a href=""> </a> </dd>
-<dt> XMPP: </dt> <dd> <a href=""> </a> </dd>
-<dt> </dt> <dd> <a href=""> </a> </dd>
-<dt> Twitter: </dt> <dd> <a href=""> </a> </dd>
+<dt> GitHub: </dt> <dd> <a class="url" rel="me" href=""> </a> </dd>
+<dt> Email: </dt> <dd> <a class="email" href=""> </a> </dd>
+<dt> Email: </dt> <dd> <a class="email" href=""> </a> </dd>
+<dt> XMPP: </dt> <dd> <a class="url" href=""> </a> </dd>
+<dt> XMPP: </dt> <dd> <a class="url" href=""> </a> </dd>
+<dt> </dt> <dd> <a class="url" rel="me" href=""> </a> </dd>
+<dt> Twitter: </dt> <dd> <a class="url" rel="me" href=""> </a> </dd>