2018-08-07 09:53:31 -06:00
|
|
|
import React from 'react';
|
2020-04-20 10:15:49 +03: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';
|
2020-02-04 09:16:48 +02:00
|
|
|
import Community from '../components/community';
|
2018-07-25 07:47:26 -04:00
|
|
|
|
2021-02-08 20:01:21 +02:00
|
|
|
function 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 (
|
2020-01-23 21:55:18 -05:00
|
|
|
<Layout hasPageHero>
|
2019-06-26 15:52:47 -04:00
|
|
|
<Helmet title={title} />
|
2020-02-04 09:16:48 +02:00
|
|
|
<Community headline={headline} subhead={subhead} sections={sections} />
|
2018-08-23 17:58:38 -04:00
|
|
|
</Layout>
|
2018-07-25 07:47:26 -04:00
|
|
|
);
|
2021-02-08 20:01:21 +02:00
|
|
|
}
|
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 {
|
2020-04-20 10:15:49 +03:00
|
|
|
title
|
2018-07-25 07:47:26 -04:00
|
|
|
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;
|