gatsby-plugin-i18n-tags
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.jsplugins: 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 } } } } } }