Skip to content

Commit 995d19b

Browse files
Website: Gateway/Supergraphs section - In Tools section as a sub-category (#1330)
Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
1 parent 2b95360 commit 995d19b

File tree

13 files changed

+355
-157
lines changed

13 files changed

+355
-157
lines changed

gatsby-config.js renamed to gatsby-config.ts

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
module.exports = {
1+
import type { GatsbyConfig } from "gatsby"
2+
3+
const config: GatsbyConfig = {
24
siteMetadata: {
35
title: "GraphQL",
46
description:
@@ -87,24 +89,26 @@ module.exports = {
8789
author: byline,
8890
})
8991
),
90-
query: `{
91-
allMarkdownRemark(
92-
filter: {frontmatter: {layout: {eq: "blog"}}}
93-
sort: {frontmatter: {date: DESC}}
94-
) {
95-
edges {
96-
node {
97-
excerpt
98-
frontmatter {
99-
title
100-
date
101-
permalink
102-
byline
103-
}
104-
}
105-
}
106-
}
107-
}`,
92+
query: /* GraphQL */ `
93+
{
94+
allMarkdownRemark(
95+
filter: { frontmatter: { layout: { eq: "blog" } } }
96+
sort: { frontmatter: { date: DESC } }
97+
) {
98+
edges {
99+
node {
100+
excerpt
101+
frontmatter {
102+
title
103+
date
104+
permalink
105+
byline
106+
}
107+
}
108+
}
109+
}
110+
}
111+
`,
108112
output: "/blog/rss.xml",
109113
title: "Blog | GraphQL",
110114
feed_url: "http://graphql.org/blog/rss.xml",
@@ -115,3 +119,5 @@ module.exports = {
115119
},
116120
],
117121
}
122+
123+
export default config

0 commit comments

Comments
 (0)