30 lines
678 B
JavaScript
30 lines
678 B
JavaScript
|
import React from "react"
|
||
|
import {Link, graphql} from "gatsby"
|
||
|
import Layout from "../../components/dataforge/layout"
|
||
|
// import Layout from "../../components/dataforge/layout"
|
||
|
|
||
|
|
||
|
const DataforgePage = ({data}) => (
|
||
|
<Layout>
|
||
|
{data.index.nodes.map(index=>{
|
||
|
return(<p
|
||
|
dangerouslySetInnerHTML = {{
|
||
|
__html: index.frontmatter.description || index.html,
|
||
|
}}
|
||
|
/>)
|
||
|
})}
|
||
|
|
||
|
</Layout>
|
||
|
)
|
||
|
|
||
|
export default DataforgePage
|
||
|
|
||
|
export const query = graphql`
|
||
|
query{
|
||
|
index: allMarkdownRemark (filter: {frontmatter: {content_type: {eq: "df-index"}}}){
|
||
|
nodes{
|
||
|
html
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`
|