pelican-plugins / series

Series is a Pelican plugin that joins multiple posts into a series
11 stars 4 forks source link

Generate paginated post index per-series #33

Open Ceralor opened 10 months ago

Ceralor commented 10 months ago

Basically what it says; it'd be neat to be able to have a paginated (if using such) index of all articles in each series as an option, especially ordered by series index value. Right now, pagination of articles in an index is dictated only by the sort order across the whole site, so if you want articles listing normally in reverse chronological order, you can't then have a chronological listing only for specific categories or series.

I'd like a feature to generate an index listing per-series, likely by default at /series/{{ series.name }}.html and organized in series order.

lgiordani commented 7 months ago

Hi @Ceralor and sorry for the long delay. I'm not completely sure I can follow the whole explanation: you basically would like the plugin to add a page with all the items in a series, right?

I'm afraid this can't be done with Pelican at the moment.

What you can do is to create a page whose template uses the variable series, which is the dictionary of all series. As I'm working on a new version of the plugin I will add a description in the documentation shortly. However, unfortunately this is how far you can go with Pelican plugins at the moment (as far as I know, at least).

Let me know if I misunderstood your request and keep an eye on the next version of the plugin. Thanks!

lgiordani commented 7 months ago

I just realised that the documentation already mentions the global context provided by the key series. Please let me know if that is of any help.