Don't print nav bar when $last_page is undef
This commit is contained in:
parent
c4d05dcb05
commit
d6d1eddfbd
|
@ -19,7 +19,7 @@
|
|||
</article>
|
||||
<% } =%>
|
||||
</div>
|
||||
<% unless ($last_page == 1) { =%>
|
||||
<% if ($last_page && $last_page != 1) { =%>
|
||||
<nav>
|
||||
<%= pagination $this_page, $last_page, '?page={page}' %>
|
||||
</nav>
|
||||
|
|
Loading…
Reference in a new issue