Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gatsby-plugin-html-attributes

escaladesports9.5kMIT1.0.5

A Gatsby plugin to easily add HTML attributes like lang or xmlns.

gatsby-plugin, gatsby, plugin, html, attributes, xmlns, lang

readme

gatsby-plugin-html-attributes

A Gatsby plugin to easily add HTML attributes like lang or xmlns.

Installation

With npm:

npm install --save gatsby-plugin-html-attributes

Or with Yarn:

yarn add gatsby-plugin-html-attributes

Usage

In your gatsby-config.js file, load in the plugin along with an object of any <html> attributes you want to add. Example:

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-plugin-html-attributes',
      options: {
        lang: 'en'
      }
    }
  ]
}