0.1.1-alpha.59 • Published 6 years ago

smooth-plugin-head-meta v0.1.1-alpha.59

Weekly downloads
313
License
MIT
Repository
github
Last release
6 years ago

smooth-plugin-head-meta

Automatically adds metadata in contents.

Install

npm install smooth-plugin-head-meta smooth-plugin-react-helmet react-helmet

Usage

Edit smooth.config.js:

// smooth.config.js
module.exports = {
  plugins: ['smooth-plugin-react-helmet', 'smooth-plugin-head-meta'],
}

Whitelist

By default, all contents have metadata, you can specify a whitelist to enable it only on custom contents.

// smooth.config.js
module.exports = {
  plugins: [
    'smooth-plugin-react-helmet',
    {
      resolve: 'smooth-plugin-head-meta',
      // Metadata will only be visible on "Page" and "Movie" content.
      options: { whitelist: ['Page', 'Movie'] },
    },
  ],
}
0.1.1-alpha.59

6 years ago

0.1.1-alpha.57

6 years ago

0.1.1-alpha.36

6 years ago

0.1.1-alpha.30

6 years ago

0.1.1-alpha.24

6 years ago

0.1.1-alpha.19

6 years ago