Use Docs Layout on other Sections

Guide for using the docs layout on other sections.

Backgrounds

The docs module/layout was applied for the docs section by default, it makes sense to separate the multiple digital gardens into different sections in most cases, such as docs for multiple projects, guides and notes.

How to Use Docs Layout on other Sections?

To use the docs layout on sections other than docs, what you need to do is to set the type to docs in front matter.

1type = 'docs'
1type: docs
1{
2   "type": "docs"
3}