2018-08-07 09:53:31 -06:00
|
|
|
import React from 'react';
|
2018-07-25 07:47:26 -04:00
|
|
|
import Helmet from 'react-helmet';
|
2018-08-23 17:58:38 -04:00
|
|
|
import { graphql } from 'gatsby';
|
2018-07-25 07:47:26 -04:00
|
|
|
|
2018-08-23 17:58:38 -04:00
|
|
|
import Layout from '../components/layout';
|
2019-06-26 15:52:47 -04:00
|
|
|
import Community from '../components/community';
|
2018-07-25 07:47:26 -04:00
|
|
|
|
|
|
|
import '../css/imports/collab.css';
|
|
|
|
|
|
|
|
const CommunityPage = ({ data }) => {
|
2019-06-24 19:07:19 -04:00
|
|
|
const { title, headline, subhead, sections } = data.markdownRemark.frontmatter;
|
2018-07-25 07:47:26 -04:00
|
|
|
|
|
|
|
return (
|
2018-08-23 17:58:38 -04:00
|
|
|
<Layout>
|
2019-06-26 15:52:47 -04:00
|
|
|
<Helmet title={title} />
|
|
|
|
<Community headline={headline} subhead={subhead} sections={sections} />
|
2018-08-23 17:58:38 -04:00
|
|
|
</Layout>
|
2018-07-25 07:47:26 -04:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const pageQuery = graphql`
|
|
|
|
query communityPage {
|
2018-08-23 17:58:38 -04:00
|
|
|
markdownRemark(fileAbsolutePath: { regex: "/community/" }) {
|
2018-07-25 07:47:26 -04:00
|
|
|
frontmatter {
|
|
|
|
headline
|
|
|
|
subhead
|
2019-06-24 19:07:19 -04:00
|
|
|
sections {
|
|
|
|
title
|
|
|
|
channels {
|
|
|
|
title
|
|
|
|
description
|
|
|
|
url
|
|
|
|
}
|
2018-07-25 07:47:26 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default CommunityPage;
|