The gatsby plugin options

March 31st, 20221 min read
Share to TwitterShare to FacebookShare to LinkedinShare to PocketCopy URL address

#
Use our plugin this way.

// Just an example
{
  resolve: `@pitayan/gatsby-theme-pitayan`,
  options: {
    siteAssets: "src/assets",
    postsPerPage: 6,
    mailChimpEndpoint:
      "https://pitayanblog.us14.list-manage.com/subscribe/post?u=234bf6777b76872feb7d92a68&id=27fad95f3b",
    mailChimpTimeout: 3500
  }
}

#
The plugin options

| option | description | default | |--------------------------|-------------------------------------------------------------------------------------------------|---------------------------------------| | siteAssets | The path of the static assets |

"./src/assets"
| | postsPerPage | How many posts to be displayed in each list page |
10
| | mailChimpEndpoint | The embeded form endpoint for your MailChimp account |
undefined
| | mailChimpTimeout | The timeout (ms) for the MailChimp subscription API request |
3500
| | applyGatsbyRemarkPlugins | The plugins for gatsby-remark-plugins that will be applied before @pitayan/gatsby-theme-pitayan |
() => defaultGatsbyRemarkPlugins
|

Share to TwitterShare to FacebookShare to LinkedinShare to PocketCopy URL address
Written by

Yanze Dai@daiyanze

Push at least one thing to its perfection even the entirety is yet incomplete

Gino Alex@ginoalex

Push at least one thing to its perfection even the entirety is yet incomplete

Related Posts

Subscribe to our email newsletters

Stay tuned to our latest content with the ability to opt-out at anytime. We will not spam your inbox or share your email with any third parties.
@