Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(paginator): custom class name (hexojs/hexo#5001) #1873

Merged
merged 1 commit into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions source/docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,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 @@ -741,6 +741,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