gatsbyjs / themes

This is a repo for Gatsby's official themes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[gatsby-theme-blog-core] Support filter, limit as theme options

theowenyoung opened this issue · comments

commented

Hi,

Here is the case, I want exclude the draft: true posts and custom posts limit, but now I can not do that.

Expect:

{
      resolve: `gatsby-theme-blog-core`,
      options: {
        filter: {
          frontmatter: { draft: {ne: true} }
        },
        limit: 500
      },
    },

I can make a pr later.