Open produnis opened 3 months ago
Thanks for the report.
Here is a reproducible example for this case: https://github.com/mcanouil/quarto-issues-experiments/tree/main/quarto-cli-9234
PS: Could you in the future provide a reproducible example. It would be appreciated.
Categories were working in 1.3, but pagination seemed to already been broken when setting the maximum number of items to be included (regardless of the number of items per page).
Edit: the issue on pagination was there since 1.0.38 (at least).
@produnis max-items
is not the same as page-size
by the way in case you did not notice the difference, i.e., setting max-items: 25
means only 25 of your 370 posts will be accessible via the listing (I am not sure you want to hide posts).
Bug description
In my blog, I have about 370 posts. If I set
max-items
parameter in listing like thispagination and categories will fail: there is no pagination at the bottom of the listing. Categories are shown in the sidebar, but if you click on a category, nothing will happen. Each "
#category=FOOBAR
" will show the main listing.If I remove
max-items
, then everything works again as expected.Steps to reproduce
create a listing that has many entries. Set
max-items
Paramenter to e.g.5
.Expected behavior
Listings shows the max-items ammount of entries (e.g. 5 entries), pagination is at the bottom of the listing, category-links will show a list of category items only
Actual behavior
There won't be any paginations, and all links of categories will just show the main listing.
Remove the
max-items
parameter, and pagiantions will reappear und category-links will workYour environment
Archlinux
Quarto check output
...but it also happens with the current 1.4 release....