Skip to content

Commit

Permalink
feat(paginator): custom class name (hexojs/hexo#5001) (#1873)
Browse files Browse the repository at this point in the history
  • Loading branch information
renbaoshuo committed Sep 9, 2022
1 parent 5595684 commit 07196c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,13 @@ Option | Description | Default
`mid_size` | The number of pages displayed between current page, but not including current page | 2
`show_all` | Display all pages. If this is set to true, `end_size` and `mid_size` will not work | false
`escape` | Escape HTML tags | true
`page_class` | Page class name | `page-number`
`current_class` | Current page class name | `current`
`space_class` | Space class name | `space`
`prev_class` | Previous page class name | `extend prev`
`next_class` | Next page class name | `extend next`
`force_prev_next` | Force display previous and next links | false


**Examples:**

Expand Down
6 changes: 6 additions & 0 deletions source/zh-cn/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,12 @@ Examples:
`mid_size` | 显示于中间的页数 | 2
`show_all` | 显示所有页数。如果开启此参数的话,`end_size``mid_size` 就没用了。 | false
`escape` | Escape HTML tags | true
`page_class` | 分页链接的 class 名称 | `page-number`
`current_class` | 当前页链接的 class 名称 | `current`
`space_class` | 空白文字的 class 名称 | `space`
`prev_class` | 上一页链接的 class 名称 | `extend prev`
`next_class` | 下一页链接的 class 名称 | `extend next`
`force_prev_next` | 强制显示上一页和下一页的链接 | false

**Examples:**

Expand Down

0 comments on commit 07196c2

Please sign in to comment.