Initial commit
This commit is contained in:
5
tina/queries/frags.gql
Normal file
5
tina/queries/frags.gql
Normal file
@@ -0,0 +1,5 @@
|
||||
fragment LayoutQueryFragment on Query {
|
||||
global(relativePath: "index.json") {
|
||||
...GlobalParts
|
||||
}
|
||||
}
|
||||
41
tina/queries/queries.gql
Normal file
41
tina/queries/queries.gql
Normal file
@@ -0,0 +1,41 @@
|
||||
query pageQuery {
|
||||
...LayoutQueryFragment
|
||||
postConnection {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
date
|
||||
title
|
||||
excerpt
|
||||
author {
|
||||
... on Author {
|
||||
...AuthorParts
|
||||
}
|
||||
}
|
||||
_sys {
|
||||
filename
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query contentQuery($relativePath: String!) {
|
||||
...LayoutQueryFragment
|
||||
page(relativePath: $relativePath) {
|
||||
...PageParts
|
||||
}
|
||||
}
|
||||
|
||||
query blogPostQuery($relativePath: String!) {
|
||||
...LayoutQueryFragment
|
||||
post(relativePath: $relativePath) {
|
||||
...PostParts
|
||||
author {
|
||||
... on Author {
|
||||
name
|
||||
avatar
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user