0.0.14 • Published 4 years ago

gridsome-plugin-ogp v0.0.14

Weekly downloads
25
License
MIT
Repository
github
Last release
4 years ago

gridsome-plugin-ogp

Adding OGP meta tags to every page can be a pain. This plugin aims to alleviate that pain. Add the plugin to your project like so.

npm i gridsome-plugin-ogp

In gridsome.config.js...

plugins: [
  {
    use: 'gridsome-plugin-ogp'
  }
]

Then, in any page or template component you have, adjust the metaInfo hook like so.

metaInfo() {
  return {
    ...this.$ogp({
      title: 'your-title',
      description: 'your-description',
      image: 'your-image-url'
      appId: 'someFacebookAppID' // Facebook-only
    })
  }
}

This will then populate the meta tags needed for Facebook, Google, and Twitter. It will also set the standard page title and description at the same time.

0.0.14

4 years ago

0.0.13

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago