@asemirsk/gatsby-plugin-ssi

1.1.0 • Public • Published

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.0-alpha.00alpha
1.1.01latest
1.1.0-beta.40next
1.0.0-canary-24-24.00canary-24

Version History

VersionDownloads (Last 7 Days)Published
1.0.0-canary-24-24.00
1.0.0-canary-24-23.00
1.0.0-canary-24-22.00
1.1.01
1.1.0-beta.40
1.0.21
1.0.2-beta.00
1.0.11
1.0.1-beta.60
1.0.0-beta.60
1.0.0-beta.50
1.0.0-alpha.00

Package Sidebar

Install

npm i @asemirsk/gatsby-plugin-ssi

Weekly Downloads

3

Version

1.1.0

License

Apache-2.0

Unpacked Size

17.7 kB

Total Files

7

Last publish

Collaborators

  • asemirsk