0.1.1-alpha.59 • Published 5 years ago

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

Weekly downloads
313
License
MIT
Repository
github
Last release
5 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

5 years ago

0.1.1-alpha.57

5 years ago

0.1.1-alpha.36

5 years ago

0.1.1-alpha.30

5 years ago

0.1.1-alpha.24

5 years ago

0.1.1-alpha.19

5 years ago