I am using Ghost as source for number of sites that built using Gatsbyjs + plugin gatsby-source-ghost. To distinguish what article belongs to what site using Gatsby build-time environment variable and internal tag in Ghost articles.
- article1 has tags
- article2 has tags
- article3 has tags
When building like
SITE=site1 gatsby build articles 1 an 2 appears. If building like
gatsby build - only second articles appear in all posts collection, featured and author’s posts.
I cannot do that using
filter - it is easy to get posts with some string but unable to get other posts - without such tag at all.
Question: is it possible to inject filtering somewhere in information sourcing process to pre-filter posts based on tag?