1.0.1 • Published 3 years ago

eleventy-plugin-logical-content-flow v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

eleventy-plugin-logical-content-flow

An Eleventy linter plugin to check for issues with the Logical Content Flow of the heading elements on your site.

Like this project? Help support my projects and buy me a coffee via ko-fi.

Sample screenshot of eleventy-plugin-logical-content-flow in action

Installation

Available on npm.

npm install eleventy-plugin-logical-content-flow --save-dev

Open up your Eleventy config file .eleventy.js and use addPlugin:

const logicalContentFlow = require("eleventy-plugin-logical-content-flow");

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(logicalContentFlow);
};

Known Issues

This plugin JSDOM to parse the output HTML. As the library doesn't render the page the checks for hidden headings and font size from the Logical Content Flow Tool have not been included with this plugin.