mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
1、修复首页分页BUG
2、优化部分页面效果
This commit is contained in:
@@ -35,7 +35,7 @@ func (c *HomeController) Index() {
|
||||
c.Abort("500")
|
||||
}
|
||||
if totalCount > 0 {
|
||||
pager := pagination.NewPagination(c.Ctx.Request,totalCount,conf.PageSize)
|
||||
pager := pagination.NewPagination(c.Ctx.Request,totalCount,pageSize)
|
||||
c.Data["PageHtml"] = pager.HtmlPages()
|
||||
} else {
|
||||
c.Data["PageHtml"] = ""
|
||||
|
||||
Reference in New Issue
Block a user