Project Partials

With project partials functionality you will be able to include ejs templates inside the layout.
This can be especially useful when you want to include extra stylesheets/javascript, add meta tags in the head, and so on.

There are 4 areas of the layout where you can include your partials:

  • head_start
  • head_end
  • footer_start
  • footer_end


To include partials templates, update the configuration. An example:

1
2
3
4
5
6
theme_config:
partials:
head_start:
- ./_meta.ejs
- ./_stylesheets.ejs
footer_end: ./_scripts.ejs

Layout variables and helpers are available in all defined templates.