Commits

Shlomi Fish committed 021dcf2

Extract a macro.

Comments (0)

Files changed (3)

lib/xml_g_fiction.wml

 <restore base desc />
 </define-tag>
 
+<define-tag link_to_epub>
+<preserve basename />
+<set-var %attributes />
+<li>
+<p>
+<a href="<get-var basename />">EPUB eBook</a> - (free download).
+</p>
+</li>
+<restore basename />
+</define-tag>

t2/humour/Blue-Rabbit-Log/index.html.wml

 <ul>
 
 <li>
+<p>
 <a href="part-1.html">Part I - The Ongoing Text - <b>Read Online</b></a>
+</p>
+</li>
+
+<link_to_epub basename="Blue-Rabbit-Log-Part-1.epub" />
+
+<li>
+<p>
+<screenplay_github_repo url="http://github.com/shlomif/Blue-Rabbit-Log" />
+</p>
 </li>
 
 <li>
-<a href="Blue-Rabbit-Log-Part-1.epub">EPUB</a> (free download).
+<p>
+<screenplay_github_repo url="http://github.com/shlomif/Blue-Rabbit-Log" />
+<link_to_screenplay base="Blue-Rabbit-Log-Part-1" />
+</p>
 </li>
 
 <li>
+<p>
 <screenplay_github_repo url="http://github.com/shlomif/Blue-Rabbit-Log" />
-</li>
-
-<li>
-<link_to_screenplay base="Blue-Rabbit-Log-Part-1" />
-</li>
-
-<li>
 <a href="ideas.xhtml">Random Ideas, in HTML format (read online)</a>
+</p>
 </li>
 
 </ul>

t2/humour/Buffy/A-Few-Good-Slayers/index.html.wml

 </p>
 </li>
 
-<li>
-<p>
-<a href="Buffy--a-Few-Good-Slayers.epub">EPUB</a> - free download.
-</p>
-</li>
+<link_to_epub basename="Buffy--a-Few-Good-Slayers.epub" />
 
 <li>
 <p>