New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

gatsby-plugin-i18n-tags

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-i18n-tags

Multi language feature for Gatsby

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

gatsby-plugin-i18n-tags

Codacy Badge Build Status NPM codecov.io Dependency Status bitHound Score MIT license

Add tags for different languages (i18n) for Gatsby.

Examples

Install

    npm install gatsby-plugin-i18n-tags --save

How to use

  • Include the plugin in your gatsby-config.js file after gatsby-plugin-i18n.
// in gatsby-config.js
plugins: [
  {
    resolve: 'gatsby-plugin-i18n-tags',
    options: { // Default options
      tagPage: 'src/templates/tag-page.js',
      tagsUrl: '/tags/',
      langKeyForNull: 'any'
    }
  }
]
  • Add tags prop to your .md files
    ---
    title: Your awesome title
    tags:
      - Linux
      - Arch
    ---
  • Query!
  {
    allMarkdownRemark{
      edges{
        node{
          frontmatter{
            title
          }
          fields{
            tagSlugs {
              tag
              link
            }
          }
        }
      }
    }
  }

Keywords

gatsby

FAQs

Package last updated on 24 Jan 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