Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
10 changes: 10 additions & 0 deletions docs/content/docs/guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@ params:
height: 20
```

### Pagination

Hextra can render previous/next navigation at the bottom of content pages (for example, in docs and blog articles) to help readers move between pages in the same section. You can disable this site-wide with a single setting:

```yaml {filename="hugo.yaml"}
params:
page:
displayPagination: false
```

## Sidebar

### Main Sidebar
Expand Down
2 changes: 2 additions & 0 deletions layouts/_partials/components/pager.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{/* Article navigation on the footer of the article */}}

{{- if (site.Params.page.displayPagination | default true) -}}
{{- $reversePagination := .Store.Get "reversePagination" | default false -}}

{{- $prev := cond $reversePagination .PrevInSection .NextInSection -}}
Expand Down Expand Up @@ -51,3 +52,4 @@
{{- end -}}
</div>
{{- end -}}
{{- end -}}