forked from rho_n/hpr_generator
Add MACRO step_navigation
This commit is contained in:
parent
227510316b
commit
541a79265a
@ -45,20 +45,8 @@
|
||||
<header>
|
||||
<h1>hpr<!--% episode.id %--> :: <!--% episode.title %--></h1>
|
||||
<h3><!--% episode.summary %--></h3>
|
||||
<p class="meta">
|
||||
<small><a href="<!--% absolute_url(baseurl) %-->eps/hpr<!--% zero_pad_left(episode.earliest) %-->/index.html" rel="first"><< First</a>,
|
||||
<!--% IF episode.previous %-->
|
||||
<a href="<!--% absolute_url(baseurl) %-->eps/hpr<!--% zero_pad_left(episode.previous) %-->/index.html" rel="previous">< Previous</a>,
|
||||
<!--% ELSE %-->
|
||||
<span><</span> Previous,
|
||||
<!--% END %-->
|
||||
<!--% IF episode.next %-->
|
||||
<a href="<!--% absolute_url(baseurl) %-->eps/hpr<!--% zero_pad_left(episode.next) %-->/index.html" rel="next">Next ></a>,
|
||||
<!--% ELSE %-->
|
||||
Next <span>></span>
|
||||
<!--% END %-->
|
||||
<a href="<!--% absolute_url(baseurl) %-->eps/hpr<!--% zero_pad_left(episode.latest) %-->/index.html" rel="last">Latest >></a></small>
|
||||
</p>
|
||||
<p class="meta"><!--% step_navigation(episode) %-->
|
||||
</p>
|
||||
<p>
|
||||
Hosted by <a href="correspondents/host<!--% episode.hostid %-->.html"><!--% episode.host %--></a>. <!--% show_meta(episode) %--></p>
|
||||
</header>
|
||||
|
@ -11,3 +11,18 @@
|
||||
<!--% MACRO absolute_path(baseurl) BLOCK %-->
|
||||
<!--% IF baseurl %-->./<!--% ELSE %-->/<!--% END %-->
|
||||
<!--% END %-->
|
||||
|
||||
<!--% MACRO step_navigation(links) BLOCK %-->
|
||||
<small><a href="<!--% absolute_url(baseurl) %-->eps/hpr<!--% zero_pad_left(links.earliest) %-->/index.html" rel="first"><< First</a>,
|
||||
<!--% IF links.previous %-->
|
||||
<a href="<!--% absolute_url(baseurl) %-->eps/hpr<!--% zero_pad_left(links.previous) %-->/index.html" rel="previous">< Previous</a>,
|
||||
<!--% ELSE %-->
|
||||
<span><</span> Previous,
|
||||
<!--% END %-->
|
||||
<!--% IF links.next %-->
|
||||
<a href="<!--% absolute_url(baseurl) %-->eps/hpr<!--% zero_pad_left(links.next) %-->/index.html" rel="next">Next ></a>,
|
||||
<!--% ELSE %-->
|
||||
Next <span>></span>
|
||||
<!--% END %-->
|
||||
<a href="<!--% absolute_url(baseurl) %-->eps/hpr<!--% zero_pad_left(links.latest) %-->/index.html" rel="last">Latest >></a></small>
|
||||
<!--% END %-->
|
||||
|
Loading…
Reference in New Issue
Block a user