book icon indicating copy to clipboard operation
book copied to clipboard

Multiple books on the same site

Open data-coder opened this issue 4 years ago • 1 comments

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.

data-coder avatar May 31 '20 12:05 data-coder

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.

Keats avatar Jun 01 '20 07:06 Keats