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

Bookcases and taxonomies #31

Open
Ran-n opened this issue May 15, 2022 · 1 comment
Open

Bookcases and taxonomies #31

Ran-n opened this issue May 15, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Ran-n
Copy link
Contributor

Ran-n commented May 15, 2022

Im using the bookcase layout for the taxonomies pages and i would like the option to make it so the title of each bookcase also reflects the number of elements in each option of the taxonomy (as it happens in the terms-cloud).

@kaiiiz
Copy link
Owner

kaiiiz commented Jun 2, 2022

It's hard to implement such a feature since hugo doesn't provide a function to retrieve the number of pages under the given section (the most relevant option is using len over where .Site.RegularPages "Section" "==" ..., but it doesn't support nested section), so a hand-crafted recursion template should be used to get the nested sections post count.

It's a feature with a relatively low priority as it's a rare case to treat the Bookcase layout as a form of taxonomy page.

@kaiiiz kaiiiz added the enhancement New feature or request label Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants