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

SubSections : Nested sections ? #2119

Closed
Progi1984 opened this issue Feb 17, 2025 · 2 comments
Closed

SubSections : Nested sections ? #2119

Progi1984 opened this issue Feb 17, 2025 · 2 comments

Comments

@Progi1984
Copy link
Contributor

Now, I have sections, which works perfectly.

pages
> dir1
>> dir1.1
>>> index.md
>> dir1.2
>>> index.md
> dir1.md

I have the page dir1 which is a section, and lists well dir1.1 and dir1.2.

I add subsections,

pages
> dir1
>> dir1.1
>>> index.md
>>> dir1.1.1
>>>> index.md
>>> dir1.1.2
>>>> index.md
>> dir1.2
>>> index.md
>>> dir1.2.1
>>>> index.md
>>> dir1.2.2
>>>> index.md
> dir1.md

How can my page dir1 can only list dir1.1 and dir1.2 (and not all the flat tree) ?
How can my page dir1.1 can only list dir1.1.1 and dir1.1.2?

@Progi1984
Copy link
Contributor Author

I found a solution. Use the filter filter_by with the key folder.

@ArnaudLigny
Copy link
Member

Yes, actually Cecil don't support nested section easily: you have to tweaks "sub-layouts" with custom collection, using filter_by.

And I also initiated a dedicated PR since 2023 : #1704.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants