blog-info-brainstorming: Difference between revisions
Kevin Marks (talk | contribs) |
(removed "tags" from code examples) |
||
Line 42: | Line 42: | ||
<dd class="alternate url"><a href="[feedlink]" class="feed">[Title]</a></dd> | <dd class="alternate url"><a href="[feedlink]" class="feed">[Title]</a></dd> | ||
<dd class="alternate url"><a href="[homepagelink]" class="homepage">[Title]</a></dd> | <dd class="alternate url"><a href="[homepagelink]" class="homepage">[Title]</a></dd> | ||
</dl> | </dl> | ||
</pre> | </pre> | ||
Line 56: | Line 55: | ||
<span class="alternate url"><a href="[feedlink]" rel="feed alternate">[Title]</a></span> | <span class="alternate url"><a href="[feedlink]" rel="feed alternate">[Title]</a></span> | ||
<span class="alternate url"><a href="[homepagelink]" rel="home">[Title]</a></span> | <span class="alternate url"><a href="[homepagelink]" rel="home">[Title]</a></span> | ||
</div> | </div> | ||
</pre> | </pre> | ||
Line 69: | Line 67: | ||
<dt>feed</dt><dd class="alternate url"><a href="[feedlink]" rel="feed alternate">[Title]</a></dd> | <dt>feed</dt><dd class="alternate url"><a href="[feedlink]" rel="feed alternate">[Title]</a></dd> | ||
<dt>homepage</dt><dd class="alternate url"><a href="[homepagelink]" class="home alternate url">[Title]</a></dd> | <dt>homepage</dt><dd class="alternate url"><a href="[homepagelink]" class="home alternate url">[Title]</a></dd> | ||
</dl> | </dl> | ||
</pre> | </pre> | ||
=== Tags === | |||
The [[blog-info-examples]] have yet to show any sign of common use of tags in blog-info chunks. | |||
Thus the following markup was removed from the above three code examples: | |||
<pre><nowiki> | |||
<dd>Tags: <a href="[tagspace/tag]" rel="tag">[tag]</a>, <a href="[tagspace/tag]" rel="tag">[tag]</a></dd> | |||
<span>Tags: <a href="[tagspace/tag]" rel="tag">[tag]</a>, <a href="[tagspace/tag]" rel="tag">[tag]</a></span> | |||
<dt>Tags</dt><dd><a href="[tagspace/tag]" rel="tag">[tag]</a>, <a href="[tagspace/tag]" rel="tag">[tag]</a></dd> | |||
</nowiki></pre> | |||
In addition, for lists of URLs that are tagged, presumably one would simply reuse [[xfolk|xFolk]] - which is a very different usage than that being explored by blog-info. | |||
== See Also == | == See Also == | ||
Line 78: | Line 93: | ||
* [[blog-info-formats]] | * [[blog-info-formats]] | ||
* [[hatom|hAtom]] | * [[hatom|hAtom]] | ||
* [[xfolk|xFolk]] |
Revision as of 09:32, 6 February 2006
Blog Info Brainstorming
This page documents thoughts toward establishing a new microformat to use when discussing, linking to, referring to blogs beyond just linking to them using a person or organization's name.
Contributors
Simple Schema
From the blog-info-examples and the existing blog-info-formats, it seems clear that a simple schema must have:
- name of the blog
- link to the blog
- zero or more links to feeds for the blog
- type of that feed
- name of person associated with the blog (e.g. author / contributor)
Class Names
- root class name for an item - (hBlog? hInfo? hItem?).
- "fn" for name of blog
- simple href link to the blog
- "alternate"? typed href alternate links
- "author" for stating who is blogging that blog. hCard is quite useful / flexible.
XHTML Structure
Definition List
When used in conjunction with XOXO, this could be a very useful way of outputting lists of favorites.
<dl class="hblog"> <dt class="fn url"><a href="[link]">[Title]</a></dt> <dd class="author">[author hCard]</dd> <dd class="description">[Description]</dd> <dd class="alternate url"><a href="[feedlink]" class="feed">[Title]</a></dd> <dd class="alternate url"><a href="[homepagelink]" class="homepage">[Title]</a></dd> </dl>
That isn't XOXO at all. XOXO has key value pairs with visible keys in <dt> and values in <dd>. If you don't want human readable key names, don't use <dl>
Non -XOXO :
<div class="hblog"> <a href="[link]" class="fn url">[Title]</a> <span class="author">[author hCard]</span> <span class="description">[Description]</span> <span class="alternate url"><a href="[feedlink]" rel="feed alternate">[Title]</a></span> <span class="alternate url"><a href="[homepagelink]" rel="home">[Title]</a></span> </div>
XOXO:
<dl class="hblog"> <a href="[link]" class="fn url">[Title]</a> <dt>Author</dt><dd class="author">[author hCard]</dd> <dt> Description</dt><dd class="description">[Description]</dd> <dt>feed</dt><dd class="alternate url"><a href="[feedlink]" rel="feed alternate">[Title]</a></dd> <dt>homepage</dt><dd class="alternate url"><a href="[homepagelink]" class="home alternate url">[Title]</a></dd> </dl>
Tags
The blog-info-examples have yet to show any sign of common use of tags in blog-info chunks.
Thus the following markup was removed from the above three code examples:
<dd>Tags: <a href="[tagspace/tag]" rel="tag">[tag]</a>, <a href="[tagspace/tag]" rel="tag">[tag]</a></dd> <span>Tags: <a href="[tagspace/tag]" rel="tag">[tag]</a>, <a href="[tagspace/tag]" rel="tag">[tag]</a></span> <dt>Tags</dt><dd><a href="[tagspace/tag]" rel="tag">[tag]</a>, <a href="[tagspace/tag]" rel="tag">[tag]</a></dd>
In addition, for lists of URLs that are tagged, presumably one would simply reuse xFolk - which is a very different usage than that being explored by blog-info.