1.1.0 • Published 2 years ago

@asemirsk/gatsby-plugin-ssi v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 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.

1.1.0

2 years ago

1.1.0-beta.4

2 years ago

1.0.2

2 years ago

1.0.2-beta.0

2 years ago

1.0.1

2 years ago

1.0.1-beta.6

2 years ago

1.0.0-beta.6

2 years ago

1.0.0-beta.5

2 years ago

1.0.0-alpha.0

2 years ago

1.0.1-beta.0

2 years ago

1.0.0

2 years ago

1.0.0-beta.3

2 years ago

1.0.0-beta.2

2 years ago