Socket
Socket
Sign inDemoInstall

gridsome-plugin-seo

Package Overview
Dependencies
4
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gridsome-plugin-seo

A SEO plugin for Gridsome


Version published
Weekly downloads
32
increased by6.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 16 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc