Menu
- Why Eleventy?
- Getting Started
- Community
- Working with Templates
- Using Data
- Configuration
- Template Languages
- Plugins
- API Services
- Release History
- Advanced
Eleventy
1.93s
Gatsby
29.05s
Inclusive Language Plugin
Contents
An Eleventy linter plugin to check for inclusive language in markdown files. Inspired by CSS Tricks’ Words to Avoid in Educational Writing. No browser/client JavaScript here—everything is this plugin is done at build-time.
Inclusive Language Linter (./docs/quicktips/concatenate.md):
be modified, of course, to capture multiple
Of course, Eleventy has no desire to re
This is just a super simple example if you
build pipeline. That’s an easy way to concatenate
Installation Jump to heading
Available on npm.
npm install @11ty/eleventy-plugin-inclusive-language --save-dev
Open up your Eleventy config file (probably .eleventy.js
) and use addPlugin
:
Filename .eleventy.js
const inclusiveLangPlugin = require("@11ty/eleventy-plugin-inclusive-language");
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(inclusiveLangPlugin);
};
INFO:
You’re only allowed one
module.exports
in your configuration file, so make sure you only copy the require
and the addPlugin
lines above!Options Jump to heading
Optionally pass in an options object as the second argument to addPlugin
to further customize this plugin.
const inclusiveLangPlugin = require("@11ty/eleventy-plugin-inclusive-language");
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(inclusiveLangPlugin, {
templateFormats: ["md"], // default, add more file extensions here
// accepts an array or a comma-delimited string
words: "simply,obviously,basically,of course,clearly,just,everyone knows,however,easy"
});
};