jekyll-paginate-v2 icon indicating copy to clipboard operation
jekyll-paginate-v2 copied to clipboard

Filtering on author

Open nfrankel opened this issue 7 years ago • 5 comments

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.

nfrankel avatar Apr 07 '18 15:04 nfrankel

+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

markusotten avatar Apr 13 '18 10:04 markusotten

Interesting. Thanks, I'll try

nfrankel avatar Apr 13 '18 10:04 nfrankel

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).

BlkPingu avatar Aug 08 '18 13:08 BlkPingu

Any updates on this? I'm facing the same issue

gabriel-miranda avatar Mar 05 '19 18:03 gabriel-miranda

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!

gouravkhunger avatar Mar 26 '22 18:03 gouravkhunger