Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

gatsby-plugin-html-attributes

1.0.5 • Public • Published

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'
      }
    }
  ]
}

Install

npm i gatsby-plugin-html-attributes

DownloadsWeekly Downloads

10,475

Version

1.0.5

License

MIT

Unpacked Size

3.24 kB

Total Files

9

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar