Don't print nav bar when $last_page is undef

This commit is contained in:
swagg boi 2022-01-04 20:24:24 -05:00
parent c4d05dcb05
commit d6d1eddfbd

View file

@ -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>