<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Beardy Geek &#187; hatom</title>
	<atom:link href="http://www.beardygeek.com/tag/hatom/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.beardygeek.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 30 Jul 2010 21:48:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Web 3.0 &#8211; How to put Semantic Tags in your Blog</title>
		<link>http://www.beardygeek.com/2008/03/web-30-how-to-put-semantic-tags-in-your-blog/</link>
		<comments>http://www.beardygeek.com/2008/03/web-30-how-to-put-semantic-tags-in-your-blog/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 12:00:05 +0000</pubDate>
		<dc:creator>BeardyGeek</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Web 3]]></category>
		<category><![CDATA[hatom]]></category>
		<category><![CDATA[semantic]]></category>
		<category><![CDATA[web3]]></category>

		<guid isPermaLink="false">http://www.beardygeek.com/?p=1</guid>
		<description><![CDATA[Learn how to put semantic markup tags in your blog.]]></description>
			<content:encoded><![CDATA[<p>I read the other day how Yahoo was going to start <a href="http://www.ysearchblog.com/archives/000527.html" onclick="pageTracker._trackPageview('/outgoing/www.ysearchblog.com/archives/000527.html?referer=');">supporting semantic web standards</a>.</p>
<p>The semantic web is something that is often associated with Web 3.0 (if that&#8217;s what you want to call it!), and will allow greater data exchange, better and more targeted search, and generally open things up for a super mash-up.  Take a look at <a href="http://en.wikipedia.org/wiki/Web_3" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Web_3?referer=');">Wikipedia&#8217;s definition of Web 3.0</a> for more info.</p>
<p>One of the formats that Yahoo will initially support is <a href="http://microformats.org/wiki/hatom" onclick="pageTracker._trackPageview('/outgoing/microformats.org/wiki/hatom?referer=');">hAtom</a>, which is a <a href="http://microformats.org/" onclick="pageTracker._trackPageview('/outgoing/microformats.org/?referer=');">microformat</a> especially for blog entries.</p>
<p>So, I thought I&#8217;d take a look at it and try and implement it in the BeardyGeek blog.</p>
<p><u><strong>First Steps</strong></u></p>
<p>To add an hAtom feed to your blog, all you need to do is add some class names to what are probably existing divs or spans in your blog template.</p>
<p>For example, if you have a div around your entire content that looks like this:</p>
<p><font color="#008000">&lt;div class=&#8221;content&#8221;&gt;</font></p>
<p>you just need to add an extra class tag called hfeed:</p>
<p><font color="#008000">&lt;div class=&#8221;content hfeed&#8221;&gt;</font></p>
<p>To have more than one class, just separate them with a space.</p>
<p>There are 3 more main tags that you need.</p>
<ul>
<li><strong>hentry</strong> &#8211; the outer tag for each blog post</li>
<li><strong>entry-title </strong>- the tag for the post title</li>
<li><strong>entry-content</strong> &#8211; the tag for your post content</li>
</ul>
<p>And that&#8217;s it.  Easy as pie!</p>
<p><u><strong>How I changed my Wordpress Theme</strong></u></p>
<p>Ok, here&#8217;s what I changed in my theme.</p>
<p><strong>Header page</strong> &#8211; At or near the bottom is a div tag &#8211; <font color="#008000">&lt;div class=&#8221;content&#8221;&gt;</font> &#8211; I changed that to <font color="#008000">&lt;div class=&#8221;content hfeed&#8221;&gt;</font>.</p>
<p><strong>Single Post </strong>- I added the hentry tag to <font color="#008000">&lt;div class=&#8221;post&#8221;&gt;</font> so it now read <font color="#008000">&lt;div class=&#8221;post hentry&#8221;&gt;</font>.  I then added entry-title to the <font color="#008000">&lt;h2 class=&#8221;post-title&#8221;&gt;</font> so it read <font color="#008000">&lt;h2 class=&#8221;post-title entry-title&#8221;&gt;</font>.  And I also add entry-content to <font color="#008000">&lt;div class=&#8221;postentry&#8221;&gt;</font> so it read <font color="#008000">&lt;div class=&#8221;postentry entry-content&#8221;&gt;</font>.</p>
<p><strong>Main index template</strong> &#8211; pretty much the same as the single post page, as the tags are all the same.</p>
<p><u><strong>Testing</strong></u></p>
<p>To test the feed, I downloaded <a href="https://addons.mozilla.org/en-US/firefox/addon/748" onclick="pageTracker._trackPageview('/outgoing/addons.mozilla.org/en-US/firefox/addon/748?referer=');">Greasemonkey</a> plugin for Firefox.  I then downloaded the <a href="http://userscripts.org/scripts/show/6073" onclick="pageTracker._trackPageview('/outgoing/userscripts.org/scripts/show/6073?referer=');">RSS Panel X</a> script for Greasemonkey, which allows you to view a page&#8217;s feeds in a small JavaScript window.  This is ideal for testing in this case as it supports hAtom.</p>
<p>Once you have these installed and running (tip: install the plugin first, then the script installs automatically), just load up your blog page.  If all went according to plan, you should see your hAtom feed along with your RSS feed.</p>
<p>In fact, you can test it out here, as I have my hAtom feed up and running!</p>
<p>Good luck, let me know how you get on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beardygeek.com/2008/03/web-30-how-to-put-semantic-tags-in-your-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
