import React from 'react'; import Helmet from 'react-helmet'; import { graphql } from 'gatsby'; import Layout from '../components/layout'; import Markdownify from '../components/markdownify'; import '../css/imports/collab.css'; const CommunityPage = ({ data }) => { const { title, headline, subhead, sections } = data.markdownRemark.frontmatter; return (

{sections.map(({ title: sectionTitle, channels }, channelIdx) => (

{sectionTitle}

))}
); }; export const pageQuery = graphql` query communityPage { markdownRemark(fileAbsolutePath: { regex: "/community/" }) { frontmatter { headline subhead sections { title channels { title description url } } } } } `; export default CommunityPage;