Nanotech Parading Mars

    @pautym/modern-eleventy-plugin-schema

    1.0.5 • Public • Published

    npm Commitizen friendly License: MIT

    Eleventy plugin to generate JSON-LD structured data.

    Thanks to:

    quasibit for creating -@quasibit/eleventy-plugin-schema

    Installation

    Install the package:

    npm install --save @pautym/modern-eleventy-plugin-schema

    Add the plugin to your Eleventy configuration (usually .eleventy.js):

    const schema = require("@pautym/modern-eleventy-plugin-schema");
    
    module.exports = function(eleventyConfig) {
      eleventyConfig.addPlugin(schema);
    };

    Introduction

    The plugin adds a shortcode to generate the JSON-LD script (including the <script> tag).

    The shortcode supports the following schema types:

    Usage

    Add data/front matter to your pages. Please refer to the files in demo. If you already have the value in other properties, you can use computed data to clone them.

    Call the shortcode where you want the script to be displayed:

    {% jsonLdScript meta, type, tags %}

    Validation

    You can validate the structured data using one of the following tools:

    License

    MIT. See LICENSE.

    Install

    npm i @pautym/modern-eleventy-plugin-schema

    DownloadsWeekly Downloads

    1

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    22.2 kB

    Total Files

    26

    Last publish

    Collaborators

    • pautym