Module hatom

Module hatom 

Source
Expand description

hAtom microformat renderer for the syndication data model.

Produces (X)HTML output with hAtom microformat markup, allowing feeds to be embedded in web pages and parsed by microformat-aware tools.

The output follows the hAtom specification from microformats.org, using class names like hfeed, hentry, entry-title, entry-content, author, updated, published, and rel-bookmark for permalinks.

Also includes microformats2 classes such as h-feed/h-entry and common properties like p-name, u-url, p-author, dt-updated, e-content.

ยงExample Output

<div class="h-feed hfeed">
  <h1 class="p-name">My Feed</h1>
  <article class="h-entry hentry">
    <h2 class="p-name entry-title">
      <a href="https://example.org/post-1" rel="bookmark" class="u-url">My Post</a>
    </h2>
    <address class="p-author author h-card vcard">
      <span class="p-name fn">Author Name</span>
    </address>
    <time class="dt-updated updated" datetime="2024-01-15T10:30:00Z">
      2024-01-15T10:30:00Z
    </time>
    <div class="e-content entry-content">
      <p>Post content here...</p>
    </div>
  </article>
</div>

Specifications: