[uf-discuss] Tentative proposal for "What's New" listings

Matthew Levine matthew at infocraft.com
Thu Sep 21 16:09:25 PDT 2006


On Sep 21, 2006, at 3:12 PM, Andy Mabbett wrote:

>> Take a look at the hAtom draft. This should fit your needs.
>
> Thank you, but if you look at:
>
>         http://www.westmidlandbirdclub.com/new.htm
>
> ... hAtom seems to be overkill.
>
> There's no "author" on each entry, which is a requirement for hAtom -
> nor can I see why there should be, since every entry on the page  
> has the
> same author.

Andy,

According to the hAtom draft [1], if you omit the "author" property,  
it'll look for the "nearest-in-parent" [2] <address> element.  You  
only need to include this once.

> There is no headline/ entry pair; just a single piece of text  
> describing the change.

Just include that as the title of the entry.  The "entry-content"  
property isn't required.

Here's a quick stab at your page.  I'm using the "published" property  
in lieu of "updated" (if "updated" is missing, it's assumed to be the  
"published" date):

   <ol class="hfeed">
     <li class="hentry">
       <h3 class="entry-title">Details and images of the two revised  
editions of <a href="...">Birds of the Malvern District</a> added to  
our bibliography.</h3>
       <abbr class="published" title="2006-09-21T15:00:00-01:00">21  
September</abbr>
     </li>
     <li class="hentry">
       <h3 class="entry-title">Our <a href="...">September 2006  
Bulletin</a> is out now.</h3>
       <abbr class="published" title="2006-09-21T12:00:00-01:00">21  
September</abbr>
     </li>
     ...
   </ol>

   ...

   <address class="vcard">
     <a class="fn org url" href="http:// 
www.westmidlandbirdclub.com/">Westmidland Bird Club</a>
   </address>

You could mark this up as a table as well, but that seems to be  
overkill.

Hope this helps!

- Matthew

[1] http://microformats.org/wiki/hatom
[2] http://microformats.org/wiki/algorithm-nearest-in-parent

-- 
Infocraft: handcrafted markup for savvy designers.
http://www.infocraft.com/




More information about the microformats-discuss mailing list