| Total Complexity | 4 |
| Complexity/F | 0 |
| Lines of Code | 18 |
| Function Count | 0 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { Actions } from "gatsby" |
||
| 2 | |||
| 3 | export const createArticles = ( |
||
| 4 | list: Queries.node__articleEdge[], |
||
| 5 | createPage: Actions["createPage"], |
||
| 6 | template: string |
||
| 7 | ) => { |
||
| 8 | list.forEach(({ node }) => { |
||
| 9 | createPage({ |
||
| 10 | path: node?.path?.alias || ``, |
||
| 11 | component: template, |
||
| 12 | context: { |
||
| 13 | slug: node?.path?.alias || ``, |
||
| 14 | }, |
||
| 15 | }) |
||
| 16 | }) |
||
| 17 | } |
||
| 18 |