-
Notifications
You must be signed in to change notification settings - Fork 107
Article Order
Filipe Fortes edited this page Sep 27, 2010
·
9 revisions
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:
toc.html
article-1.html
article-2.html
Note that the johnson.html
and jackson.html
links are ignored, since they do not have rev=contents
set.
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.