Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit f9c26ca

Browse files
committed
Add author, image query partials
1 parent 6ae43b8 commit f9c26ca

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Query partial: retrieve author post fields.
2+
const authorPostFields = `
3+
author {
4+
node {
5+
slug
6+
nickname
7+
}
8+
}
9+
`
10+
export default authorPostFields
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Query partial: retrieve featured image post fields.
2+
const featuredImagePostFields = `
3+
featuredImage {
4+
node {
5+
altText
6+
sourceUrl(size: $imageSize)
7+
}
8+
}
9+
`
10+
11+
export default featuredImagePostFields

0 commit comments

Comments
 (0)