Closed razonyang closed 3 months ago
We currently have a paginate
option (meaning: default pagination page size), so we need to consolidate a little. I suggest:
// Loaded from the 'pagination' key in hugo.toml.
type struct PaginationConfig {
DefaultPageSize int // old paginate
DisableAliases bool
Path string // old paginatePath
}
And make sure that the old config setup also works.
We also have paginatePath
.
I just saw something like this in a site config:
[languages.en]
weight = 1
paginatePath = "page-en"
[languages.de]
weight = 2
paginatePath = "page-de"
The pagination path is different for each language. Not sure how that's going to work if we include it in the struct above.
The pagination path is different for each language. Not sure how that's going to work if we include it in the struct above.
I don't see how that will be a problem, the above will still work. We will want to eventually deprecate paginatePath
etc., but then the above would look like:
[languages.de]
weight = 2
[languages.de.pagination]
path = "page-de"
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
https://discourse.gohugo.io/t/pagination-seems-to-create-aliases/22422/6?u=razon