diff --git a/src/index.php b/src/index.php index 83b0a99..1b9e049 100644 --- a/src/index.php +++ b/src/index.php @@ -89,22 +89,74 @@ 没有文章 - getTotal()/$this->parameter->pageSize); ?> + getCurrentPage(); + $TotalPage=ceil($this->getTotal()/$this->parameter->pageSize); + $PageLinkTemp = Typecho\Router::url( + $this->parameter->type . + (false === strpos($this->parameter->type, '_page') ? '_page' : null), + $this->pageRow, + $this->options->index + ); + ?> 1){ ?> -
- - _currentPage > 1) { - $this->pageLink('上一页'); - } else { ?> - 上一页 - - _currentPage; ?> / - _currentPage < $TotalPage) { - $this->pageLink('下一页','next'); - } else { ?> - 下一页 +
+ 1) { + $this->pageLink(''); + } else { ?> + + + +
+ 4) { ?> + "> + + + 1 + + + + + + + $TotalPage) break; ?> + " > + variant="tonal" > + + + + + + 3) { ?> + + + + "> + + + + + + - +
+ + pageLink('','next'); + } else { ?> + +