Permalink
Browse files

Fix page counts for index page

  • Loading branch information...
1 parent c66cdbb commit ece28c416a36640a980502cd5186127f9ba3bed4 @cdaddr committed Jul 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/blog/pages.clj
View
@@ -25,7 +25,7 @@
:offset (config/page-offset page-number)
:admin? user
:post-type "blog")
- c (oyako/fetch-one (db/count-rows :posts) :admin? user)]
+ c (oyako/fetch-one (db/count-rows :posts) :admin? user :post-type "blog")]
(if (seq posts)
{:body (html/render-index posts
:count (:count c)

0 comments on commit ece28c4

Please sign in to comment.