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

Multiple books on the same site #13

Open
data-coder opened this issue May 31, 2020 · 1 comment
Open

Multiple books on the same site #13

data-coder opened this issue May 31, 2020 · 1 comment

Comments

@data-coder
Copy link

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.

@Keats
Copy link
Collaborator

Keats commented Jun 1, 2020

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.

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