You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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 %]