Skip to content

Commit

Permalink
Merge pull request #136 from gagahpangeran/changelog-next
Browse files Browse the repository at this point in the history
Filter out changelog next in changelog page
  • Loading branch information
gagahpangeran authored Apr 21, 2021
2 parents 92142f0 + c548bb1 commit 7f83f90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const createPages: GatsbyNode["createPages"] = async ({
filter: {
fields: {
type: { eq: "changelog" }
slug: { ne: "/changelog/Home/" }
slug: { nin: ["/changelog/Home/", "/changelog/Next/"] }
}
}
sort: { fields: fields___slug, order: DESC }
Expand Down
5 changes: 4 additions & 1 deletion src/pages/changelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export const pageQuery = graphql`
query Changelog {
allChangelog: allMarkdownRemark(
filter: {
fields: { type: { eq: "changelog" }, slug: { ne: "/changelog/Home/" } }
fields: {
type: { eq: "changelog" }
slug: { nin: ["/changelog/Home/", "/changelog/Next/"] }
}
}
sort: { fields: fields___slug, order: DESC }
) {
Expand Down

0 comments on commit 7f83f90

Please sign in to comment.