openresty/demo/Blog/template/elem/archive-nav.tt

17 lines
347 B
Plaintext

[% IF next %]
[%- index = next.month %]
<a href="#archive/[% next.year %]/[% next.month %]">
« [% months.$index %] [% next.year %]
</a>
[% END %]
|
<a href="#posts/1"> Main </a>
|
[% IF prev %]
[%- index = prev.month %]
<a href="#archive/[% prev.year %]/[% prev.month %]">
[% months.$index %] [% prev.year %] »
</a>
[% END %]