Skip to content

Configurations

You can configure Sails Content with the config/content.js file.

inputDir

  • Default: 'content'

Specify the content directory.

js
module.exports.content = {
  inputDir: 'my-content'
}

output

  • Default: 'static'

Specify whether to build your content when you lift your Sails app or not.

js
module.exports.content = {
  output: 'static'
}

layout

  • Default: undefined

Specify a global layout for your .md files.

js
module.exports.content = {
  layout: './views/layouts/blog-post.ejs'
}

All open source projects are released under the MIT License.