Skip to content

_includes folder for templates ?? #268

@coolshaurya

Description

@coolshaurya

The config page says -

DIRECTORY FOR INCLUDES

Controls the directory inside which the template includes/extends/partials/etc can be found.

Includes Directory  
Object Key dir.includes
Default _includes
Valid Options Any valid directory inside of dir.input
Command Line Override None

While the templating page says -

This will look for a mylayout.njk Nunjucks template file in your _includes folder (_includes/mylayout.njk). You can use any template type in your layout—it doesn’t have to match the template type of the content. An ejs template can use a njk layout, for example.

There is a lot of confusion when we see these 2 together - they are contradicting.

the includes setting tin the config should be renamed to _templates or something as it causes a lot of confusion and the documentation should be updated in the relevant places.

Metadata

Metadata

Assignees

No one assigned

    Labels

    educationopen-questionRequires additional information before we can proceed.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions