refactor(starter): upgrade and move to typescript

This commit is contained in:
Alexander Shelepenok
2022-04-16 14:25:55 +00:00
parent 67ebabbaac
commit 50a99f57f7
156 changed files with 5350 additions and 7173 deletions

View File

@@ -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 }
}