haacked / Subtext

Subtext Blog Engine

Home Page:http://subtextproject.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve tagging support in Subtext

jeremy-jameson opened this issue · comments

As described in one of Phil's posts (http://haacked.com/archive/2007/05/11/tagging-in-subtext.aspx), Subtext uses the rel-tag microformat (http://microformats.org/wiki/rel-tag) to support tagging in blog posts.

However, if you specify URLs using the form specified in Phil's post noted above (which conforms to the microformat), then tagging works as expected provided you don't specify the URL for your Subtext blog (for example, your tags specify a Technorati URL).

If, on the other hand, you specify a rel-tag using the URL of your blog -- which I imagine most people would prefer instead, so that clicking the link doesn't lead blog readers away from your site -- then you have to specify a rel-tag that does not conform to the microformat.

For example, Phil currently specifies rel-tag links like this:

Tags: <a href="http://haacked.com/tags/software/default.aspx" rel="tag">software</a>

According to the rel-tag microformat, in this example, the tag is default.aspx (not software) because the microformat states that the last part of the URL specifies the tag name.

Also, I could not find anything in the rel-tag microformat that states the URL must be an absolute URL. Consequently, I prefer to specify tags on my blog (http://www.technologytoolbox.com/blog/jjameson) using server-relative URLs like this:

<ul>
  <li><a href="/blog/jjameson/tags/Subtext" rel="tag">Subtext</a></li>
  <li><a href="/blog/jjameson/tags/Web%20Development" rel="tag">Web Development</a></li>
</ul>

This ensures everything works as expected when restoring my Subtext data from Production to Development and Test environments.