Closed tavareshugo closed 2 years ago
Yes it can.
metadata-files:
- "materials/_sidebar.yml"
materials/_sidebar.yml
with the sidebar specification only (this shouldn't be in the main _quarto.yml
file anymore):
website:
sidebar:
- title: "Materials"
contents:
- materials.md
- section: "Section 1"
contents:
- "materials/path/to/lesson.md"
- section: "Section 2"
contents:
- "materials/path/to/another.md"
- "materials/path/to/third.md"
This is using the metadata merging feature of Quarto.
This might actually be a better alternative to automatic sidebar generation (it's more flexible and explicit)
Can the
navbar
andsidebar
be defined from anindex.md
file in thematerials/
directory? This way we can keep the navigation setup separate from the main_quarto.yml
file.This would also be an alternative to sidebar auto generation, which might be inconvenient in some cases.