Skip to content

Commit

Permalink
feat(index): add totalCount in the gql query
Browse files Browse the repository at this point in the history
  • Loading branch information
mdluo committed Mar 13, 2020
1 parent f91ff83 commit 3a7be2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const Index: React.FC = () => {
sort: { order: DESC, fields: frontmatter___date }
filter: { frontmatter: { type: { eq: "post" } } }
) {
totalCount
edges {
node {
frontmatter {
Expand Down

0 comments on commit 3a7be2b

Please sign in to comment.