remove unused controller argument
This commit is contained in:
parent
545443e8b2
commit
ff7a036d44
|
@ -18,7 +18,7 @@ final class Blog(
|
|||
|
||||
private def blogApi = env.blog.api
|
||||
|
||||
def index(page: Int, ref: Option[String]) = WithPrismic { implicit ctx => implicit prismic =>
|
||||
def index(page: Int) = WithPrismic { implicit ctx => implicit prismic =>
|
||||
pageHit
|
||||
blogApi.recent(prismic, page, MaxPerPage(12)) flatMap {
|
||||
case Some(response) => fuccess(Ok(views.html.blog.index(response)))
|
||||
|
|
|
@ -39,7 +39,7 @@ object index {
|
|||
pager.currentPageResults flatMap MiniPost.fromDocument("blog", "wide") map { post =>
|
||||
primaryPost.fold(true)(_.id != post.id) option bits.postCard(post, "paginated".some, h3)
|
||||
},
|
||||
pagerNext(pager, np => routes.Blog.index(np, none).url)
|
||||
pagerNext(pager, np => routes.Blog.index(np).url)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue