gridsome-plugin-seo

1.0.2 • Public • Published

Gridsome SEO plugin

Simplify the addition of meta tags helpful for SEO such as keywords, description and rich media formats like open graph and twitter cards.

This plugin is just wrapping the functionality of the Nuxt-SEO plugin.

Install

  • npm i gridsome-plugin-seo --save
  • yarn add gridsome-plugin-seo

Usage

gridsome.config.js

module.exports = {
  plugins: [{
    use: 'gridsome-plugin-seo'
  }]
}

Index.vue or other pages and templates

<script>
export default {
  metaInfo () {
    return this.$seo({
      title: 'My page', // Uses the titleTemplate in Gridsome config
      description: 'My description',
      keywords: 'one,two',
      openGraph: {
        title: 'My site',
        type: 'website'
      },
      twitter: {
        title: 'My site',
        type: 'summary'
      },
      link: [],   // any links
      script: []  // any scripts
    })
  }
}
</script>

Options

All available options in Nuxt-SEO docs are supported.

See the available schema.

Package Sidebar

Install

npm i gridsome-plugin-seo

Weekly Downloads

30

Version

1.0.2

License

MIT

Unpacked Size

3.85 kB

Total Files

5

Last publish

Collaborators

  • wyattis