Skip to content

Article Order

Filipe Fortes edited this page Sep 27, 2010 · 9 revisions

Article Order

You can tell Treesaver to check another file for order of articles by creating a link element with a rel value of contents:

  <link rel="contents" href="toc.html" />

Treesaver will download this file and look for any a element with a rev value of contents. For example, the markup below:

  <h1><a href="toc.html" rev="contents">The Daily Gazette</a></h1>

  <h3><a href="article-1.html" rev="contents">First Article</a></h3>
  <p class="byline">By <a href="johnson.html">John Johnson</a></p>

  <h3><a href="article-2.html" rev="contents">Second Article</a></h3>
  <p class="byline">By <a href="jackson.html">Jane Jackson</a></p>

The markup fragment above will produce the following article order:

  1. toc.html
  2. article-1.html
  3. article-2.html

Note that the johnson.html and jackson.html links are ignored, since they do not have rev=contents set.

Using the Current File as Table of Contents

If there is no link rel=contents element in the document <head>, Treesaver will assume that the current document is the TOC, and search the original HTML for the document for a elements with rev=contents set.

Clone this wiki locally