book
book copied to clipboard
Multiple books on the same site
Hi,
I have a site with tons of books and want to move it to Zola.
Is there a way to have multiple books, each one with their own chapters?
Example:
content
├── programming
│ ├── index.md
│ ├── compilers.md
│ └── programming-languages.md
│ ├── index.md
│ ├── rust
│ │ ├── index.md
│ │ └── cargo.md
│ ├── python
│ └── index.md
├── mathematics
│ ├── index.md
│ └── algebra.md
└── philosophy
└── index.md
For example, if I’m visiting example.com/programming, on the sidebar, I’d like to see:
- compilers
- programming languages (+)
On a side note: “books” and “chapters” are just metaphors. I have nested “books” and in each one, on the sidebar, I see the parent, siblings, and children.
You probably want to use this template as a base and just override the templates to fit your own need. So rather than adding them in themes
, just add the templates in templates
and hack away.