Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@benrobertson/gatsby-theme-seo

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@benrobertson/gatsby-theme-seo

[![npm](https://img.shields.io/npm/v/@benrobertson/gatsby-theme-seo)](https://www.npmjs.com/package/@benrobertson/gatsby-theme-seo)

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm

Gatsby

gatsby-theme-seo

This theme adds SEO related packages and configuration. The following packages are enabled by default:

  • gatsby-plugin-react-helmet
  • gatsby-plugin-catch-links
  • gatsby-plugin-robots-txt
  • gatsby-plugin-advanced-sitemap

These packages are also included, but not enabled by default:

  • gatsby-plugin-google-tagmanager
  • gatsby-plugin-force-trailing-slashes

Install

npm install @benrobertson/gatsby-theme-seo

Configure

In your gatsby-config.js:

module.exports = {
  plugins: [{
    resolve: 'gatsby-theme-seo',
    options: {
      // Adding variables in here will fail a build quickly and output
      // an error message. Useful for catching env errors quickly.
      requiredEnvVars: [
       'URL'
      ],

      // If true, forces trailing slashes.
      // Set to false by default.
      forceTrailingSlash: false,

      // The Google Tag Manager ID you want to add.
      // Will only add in production by default.
      gtmId: 'TEST-ID',

      // Optional configuration for robots.txt
      // See: https://www.gatsbyjs.org/packages/gatsby-plugin-robots-txt
      // Example:
      robotsOptions: {
        host: 'https://www.example-override.com',
        sitemap: 'https://www.example.com/sitemap.xml',
        policy: [{ userAgent: '*', allow: '/' }]
      },

      // Optional configuration for sitemaps.
      // For all available options, see:
      // https://www.gatsbyjs.org/packages/gatsby-plugin-advanced-sitemap/?=gatsby-plugin-advan#options
      // Example:
      sitemapOptions: {
       exclude: [
        '/404.html',
        '/404',
        '/dev-404-page',
        '/maintenance'
      }
    }
  }],
}

FAQs

Package last updated on 16 Dec 2019

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