hugo-theme-codex icon indicating copy to clipboard operation
hugo-theme-codex copied to clipboard

Enable pagination in blog view

Open aldrineeinsteen opened this issue 5 years ago • 6 comments

Add configuration support in the blog section.

Am thinking about

[params]
  [params.blog]
     ...
     pagination = true
     paginate = 5

aldrineeinsteen avatar Jul 14 '20 04:07 aldrineeinsteen

@kentnek this is a feature I'd like to have a bigger discussion about. After some thought, I think it would be best to a have a default pagination setup for the blog list, and the default can be overridden using configuration such as @aldrineeinsteen has described.

What are your thoughts?

jakewies avatar Jul 14 '20 13:07 jakewies

I don't mind having a pagination, as long as the styling fits our overall look of the theme. I don't really dig the bright red page button in @aldrineeinsteen's PR, which instead can be a semi-transparent grey box like this existing Prev/Next button:

test

Also, the config should also be site-wide, not page-wide, as discussed earlier.

kentnek avatar Jul 14 '20 14:07 kentnek

Agreed on all accounts. The styles must fit the theme. And the config should exist in config.toml site wide. @aldrineeinsteen if you need help with styling let us know.

jakewies avatar Jul 14 '20 14:07 jakewies

Is it possible to paginate the blog? I don't find the way...

miguelbemartin avatar Aug 16 '20 18:08 miguelbemartin

@miguelbemartin this feature is not yet supported. But it's something that's on the roadmap. If you'd like to contribute go for it!

jakewies avatar Oct 18 '20 15:10 jakewies

Thanks for your answer. I didn't use this theme in the end as it didn't have support for pagination. If not, I would be happy to help to contribute to this repo.

miguelbemartin avatar Oct 20 '20 17:10 miguelbemartin