Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Fix tag page (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
ertrzyiks authored Nov 13, 2022
1 parent 6b16063 commit 0c79278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/blog/src/templates/post-list-by-tag.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export default function PostListByTagPage({ data, pageContext, location }) {
}

export const pageQuery = graphql`
query blogListByTagQuery($tag: String!, $skip: Int!, $limit: Int!) {
query blogListByTagQuery($slug: String!, $skip: Int!, $limit: Int!) {
...siteMetadata
...allCategories
allStrapiRecipe(
filter: { tags: { elemMatch: { slug: { in: [$tag] } } } }
filter: { tags: { elemMatch: { slug: { in: [$slug] } } } }
sort: { order: DESC, fields: [published_at] }
limit: $limit
skip: $skip
Expand Down

0 comments on commit 0c79278

Please sign in to comment.