New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More β†’
Socket
Sign inDemoInstall
Socket

@bradgarropy/gatsby-plugin-seo

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bradgarropy/gatsby-plugin-seo

πŸ”Ž gatsby-plugin-seo

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
Β 
Created
Source

πŸ”Ž gatsby-plugin-seo

version downloads size contributing contributors discord

SEO plugin for Gastby. Supports Facebook, Twitter, Open Graph, and meta tags.

πŸ“¦ Installation

This package is installable from npm.

npm install @bradgarropy/gatsby-plugin-seo

βš™ Configuration

Head over to the gatsby-config.js file and add @bradgarropy/gatsby-plugin-seo to the list of plugins.

// gatsby-config.js

module.exports = {
    siteMetadata: {
        url: "https://bradgarropy.com",
        title: "Brad Garropy",
        description: "🏑 My home on the web.",
        keywords: ["gatsby", "portfolio"],
        twitter: "bradgarropy",
    },
    plugins: ["@bradgarropy/gatsby-plugin-seo"],
}

Some fields in siteMetadata are also required.

NameDescription
urlBase url of the website.
titleDocument title shown in the browser.
descriptionMeta description of the page.
keywordsKeywords describing the page.
twitterTwitter handle, without the @.

This plugin also expects the default social media cards and favicon to be availabe at /facebook.png, /twitter.png, and /favicon.png. This can be accomplished by placing these images in the static directory.

static
β”œβ”€β”€ facebook.png
β”œβ”€β”€ favicon.png
└── twitter.png

πŸ₯‘ Usage

This plugin exports an <SEO> component that can be used without any props.

import SEO from "@bradgarropy/gatsby-plugin-seo"

const App = () => <SEO />

If you want to customize the SEO properties on each page, the <SEO> component accepts three props: title, description, and image.

import SEO from "@bradgarropy/gatsby-plugin-seo"

const App = () => (
    <SEO
        title="Custom page title."
        description="My custom description."
        image="https://github.com/bradgarropy.png"
    />
)

❔ Questions

πŸ› report bugs by filing issues
πŸ“’ provide feedback with issues or on twitter
πŸ™‹πŸΌβ€β™‚οΈ use my ama or twitter to ask any other questions

✨ contributors


Brad Garropy

πŸ’» πŸ“– ⚠️ πŸš‡

Gem Kosan

πŸ’»

Keywords

FAQs

Package last updated on 12 Jul 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc