smooth-plugin-head-meta

0.1.1-alpha.59 • Public • Published

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'] },
    },
  ],
}

Package Sidebar

Install

npm i smooth-plugin-head-meta

Weekly Downloads

0

Version

0.1.1-alpha.59

License

MIT

Unpacked Size

12.8 kB

Total Files

12

Last publish

Collaborators

  • neoziro