ページネーション

<mt:SetVarBlock name="pagination_navigation">
<mt:If name="search_results">
<mt:IfMoreResults>
<li><a rel="prev" href="<$mt:NextLink encode_html="1"$>">過去の記事</a></li>
</mt:IfMoreResults>
<mt:IfPreviousResults>
<li><a rel="next" href="<$mt:PreviousLink encode_html="1"$>">新しい記事</a></li>
</mt:IfPreviousResults>
<mt:Else>
<mt:If name="archive_template">
<$mt:ArchiveCount setvar="total_entries"$>
<mt:Else>
<$mt:BlogEntryCount setvar="total_entries"$>
</mt:If>
<mt:If name="total_entries" gt="$entries_per_page">
<li><a rel="prev" href="<$mt:Var name="search_link"$>2">過去の記事</a></li>
</mt:If>
</mt:If>
</mt:SetVarBlock>

<mt:If name="pagination_navigation">
<$mt:Var name="pagination_navigation" strip_linefeeds="1" trim="1" setvar="pagination_navigation"$>
<nav class="pagination">
<ul>
<$mt:Var name="pagination_navigation"$>
</ul>
</nav>
</mt:If>