@@ -6,9 +6,26 @@ exports.createPages = ({ graphql, actions }) => {
66 return new Promise ( ( resolve , reject ) => {
77 resolve (
88 graphql ( `
9+ {
10+ provisions: allMarkdownRemark(
11+ filter: { fileAbsolutePath: { regex: "/provisions/" } }
12+ sort: { fields: [frontmatter___date], order: DESC }
13+ ) {
14+ edges {
15+ node {
16+ id
17+ frontmatter {
18+ path
19+ title
20+ date(formatString: "DD MMMM YYYY")
21+ }
22+ excerpt
23+ }
24+ }
25+ }
926 {
10- services : allMarkdownRemark(
11- filter: { fileAbsolutePath: { regex: "/get-Started /" } }
27+ getStarted : allMarkdownRemark(
28+ filter: { fileAbsolutePath: { regex: "/getStarted /" } }
1229 sort: { fields: [frontmatter___date], order: DESC }
1330 ) {
1431 edges {
@@ -23,7 +40,7 @@ exports.createPages = ({ graphql, actions }) => {
2340 }
2441 }
2542 }
26- team : allMarkdownRemark(
43+ docs : allMarkdownRemark(
2744 filter: { fileAbsolutePath: { regex: "/docs/" } }
2845 sort: { fields: [frontmatter___date], order: DESC }
2946 ) {
@@ -39,7 +56,7 @@ exports.createPages = ({ graphql, actions }) => {
3956 }
4057 }
4158 }
42- testimonials : allMarkdownRemark(
59+ scanner : allMarkdownRemark(
4360 filter: { fileAbsolutePath: { regex: "/scanner/" } }
4461 sort: { fields: [frontmatter___date], order: DESC }
4562 ) {
@@ -58,7 +75,17 @@ exports.createPages = ({ graphql, actions }) => {
5875 }
5976 ` ,
6077 ) . then ( ( result ) => {
61- result . data . services . edges . forEach ( ( { node } ) => {
78+ result . data . provisions . edges . forEach ( ( { node } ) => {
79+ const component = path . resolve ( 'src/templates/provision.js' ) ;
80+ createPage ( {
81+ path : node . frontmatter . path ,
82+ component,
83+ context : {
84+ id : node . id ,
85+ } ,
86+ } ) ;
87+ } ) ;
88+ result . data . getStarted . edges . forEach ( ( { node } ) => {
6289 const component = path . resolve ( 'src/templates/getStarted.js' ) ;
6390 createPage ( {
6491 path : node . frontmatter . path ,
@@ -68,7 +95,7 @@ exports.createPages = ({ graphql, actions }) => {
6895 } ,
6996 } ) ;
7097 } ) ;
71- result . data . team . edges . forEach ( ( { node } ) => {
98+ result . data . docs . edges . forEach ( ( { node } ) => {
7299 const component = path . resolve ( 'src/templates/docs.js' ) ;
73100 createPage ( {
74101 path : node . frontmatter . path ,
@@ -78,7 +105,7 @@ exports.createPages = ({ graphql, actions }) => {
78105 } ,
79106 } ) ;
80107 } ) ;
81- result . data . testimonials . edges . forEach ( ( { node } ) => {
108+ result . data . scanner . edges . forEach ( ( { node } ) => {
82109 const component = path . resolve ( 'src/templates/scanner.js' ) ;
83110 createPage ( {
84111 path : node . frontmatter . path ,
0 commit comments