static-cms/website/src/pages/community.js

41 lines
868 B
JavaScript
Raw Normal View History

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