site/src/pages/dataforge/index.js

30 lines
678 B
JavaScript
Raw Normal View History

2020-01-15 17:45:50 +03:00
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
}
}
}
`