0.2.3 • Published 4 years ago

@dewen_li/gatsby-plugin-ssi v0.2.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

gatsby-plugin-ssi

Provides ability to add SSI elements to head of your gatsby site.

Install

npm install --save @bodiless/gatsby-plugin-ssi

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `@bodiless/gatsby-plugin-ssi`,
    options: {
      // path to your json file that contains SSI configs.
      // default value is ssi/ssi_conf.json relative to your gatsby site.
      ssiConfPath: `/path/to/your/ssi_conf`,
    },
  },
]

SSI config format

SSI configuration file should be in json format.

{
  key1: {
    pragma: "<!--# ssi data should go here -->",
    ...
  }
  ...
  keyN: {
    pragma: "<!--# ssi data should go here -->",
    ...
  }
}

The plugin will take elements defined in pragma field and will inject them to generated site leveraging GATSBY API.

0.2.3

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.50

4 years ago

0.0.47

4 years ago

0.0.46

4 years ago

0.0.45

4 years ago

0.0.7

4 years ago

0.0.2

4 years ago