mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-09-14 20:20:58 +02:00
refactor(starter): upgrade and move to typescript
This commit is contained in:
@@ -47,13 +47,13 @@ const CategoryTemplate: React.FC<Props> = ({ data, pageContext }: Props) => {
|
||||
};
|
||||
|
||||
export const query = graphql`
|
||||
query CategoryPage($category: String, $postsLimit: Int!, $postsOffset: Int!) {
|
||||
query CategoryTemplate($group: String, $limit: Int!, $offset: Int!) {
|
||||
allMarkdownRemark(
|
||||
limit: $postsLimit
|
||||
skip: $postsOffset
|
||||
limit: $limit
|
||||
skip: $offset
|
||||
filter: {
|
||||
frontmatter: {
|
||||
category: { eq: $category }
|
||||
category: { eq: $group }
|
||||
template: { eq: "post" }
|
||||
draft: { ne: true }
|
||||
}
|
||||
|
Reference in New Issue
Block a user