jekyll-paginate-v2
jekyll-paginate-v2 copied to clipboard
Filtering on author
Hello,
Thanks for this plugin. I saw it's possible to filter on tag and category. I wondered if that would be possible to filter on author? My use-case is that I want to have on the author's page only the posts of the author, and paginated.
If yes, could you please provide an example? If not, then I think it's a feature to consider.
+1
Hi nfrankel, this is my current workaround - mybe it helps:
/PeterParker/index.md
---
layout: home
title: Peter Parker
permalink: /PeterParker/
pagination:
enabled: true
per_page: 5
category: _author_PeterParker
permalink: /:num/
---
A few words on the author ...
You'll have to filter the category beginning with _author_ when listing them to the reader.
Regards,
Markus
Interesting. Thanks, I'll try
I need this too, but in my case I already filter by tags and categories. So this workaround will not cut it for me.
I tried to use collections for this, but to no avail.
I want to have a list of all authors with their number of posts appended (got it already) and now fail on providing a paginated list of these posts by clicking on the author. Much like the possibilities of the category variable. All I can do is provide a link with author/{{authorname}}/:num//index.html, but not paginate for it (meaning generate the html files and subdirectories).
Any updates on this? I'm facing the same issue
Hey everyone! I faced the same problem for Genics Blog's team publication.
So I made a plugin jekyll-auto-authors that works in sync with jekyll-paginate-v2 to add multiple authors easily. The plugin also supports pagination for authors.
I hope this helps to solve the problem, as I don't think jekyll-paginate-v2 is being actively maintained considering the stale issues and PRs.
Here's the post on jekyll talk about jekyll-auto-authors
Thank you!