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

Pagination for authors #18

Closed
ghost opened this issue Mar 14, 2017 · 1 comment
Closed

Pagination for authors #18

ghost opened this issue Mar 14, 2017 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Mar 14, 2017

Hey again,

another problem of me is, I want to have a multi-author-blog and want to autogenerate pages with all articles for a specific author. I know of the autopages "optional pagination addon", but I'm not sure if this is already designed for this kind of issue. Cool would be, if this autogenerated page could include something like a description and maybe even a picture of the author.
If this is already possible, how would I do this?

Or is it one more feature request?

@sverrirs
Copy link
Owner

sverrirs commented Mar 14, 2017

Hi @bastoGrande ,

This is already possible using the AutoPages feature.

Currently there is no support for custom field pagination but you can assign each of your authors a "Category" (e.g their email or username or something like that) and then paginate on that. Alternatively you could do the same by assigning your authors with tags.

Then you can create a custom layout for each author (I'm assuming you don't have hundreds of authors) that has a customized layout for that author, e.g. picture, bio, links etc and then within that page use the pagination code.

You can see an example of this in the Examples, especially Example 03 which has customized layouts for autopages (https://github.com/sverrirs/jekyll-paginate-v2/blob/master/examples/03-tags/_layouts/autopage_collection.html). Just remember to configure the layouts in the _config.yml file as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant