Skip to content

Commit

Permalink
Fix invalid pager link
Browse files Browse the repository at this point in the history
Don't create invalid "Older Entries" link if there are exactly
:posts-per-pages posts
  • Loading branch information
hlatki committed Jan 11, 2014
1 parent 404fd4a commit da6d421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
[:a {:href (str "/latest-posts/" (+ page 1) "/")}
"Newer Entries »"]]]
(cond
(< count-total posts-per-page) nil
(<= count-total posts-per-page) nil
(= page max-index) (list older)
(= page 0) (list newer)
:default (list older newer))))
Expand Down

0 comments on commit da6d421

Please sign in to comment.