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

Commit 6ae43b8

Browse files
committed
Abstract global, seo fields into partials
1 parent e84ef2a commit 6ae43b8

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Query partial: retrieve global post fields.
2+
const globalPostFields = `
3+
databaseId
4+
date
5+
slug
6+
title
7+
`
8+
export default globalPostFields
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Query partial: retrieve SEO post fields.
2+
const seoPostFields = `
3+
seo {
4+
canonical
5+
title
6+
metaDesc
7+
metaRobotsNofollow
8+
metaRobotsNoindex
9+
opengraphImage {
10+
sourceUrl
11+
}
12+
}
13+
`
14+
15+
export default seoPostFields

0 commit comments

Comments
 (0)