Commit 244d0d16 authored by Seth A Johnson's avatar Seth A Johnson
Browse files

Merge branch 'impact' into 'master'

added Impact page

See merge request about-leverpress!1
parents 612ed0cb ab118b7a
......@@ -49,7 +49,12 @@ const Navbar = () => {
</li>
<li>
<Link to="/info" className="nav-link">
Info
Info For
</Link>
</li>
<li>
<Link to="/impact" className="nav-link">
Impact
</Link>
</li>
<li>
......
---
templateKey: impact-page
path: "/impact"
title: Impact
readershipMapDescription: >-
*Readership Map*
A description of the readership map.
googleDataStudioDescription: >-
*Data Studio*
A bit about google's data studio maybe.
---
import React from 'react'
import Layout from '../components/layout'
import Title from '../components/title'
import {graphql} from 'gatsby'
const Impact = ({data}) => {
const {
title,
readershipMapDescription,
googleDataStudioDescription
} = data.markdownRemark.frontmatter
return (
<Layout>
<Title title={title} />
<div className="readership-map">
<div dangerouslySetInnerHTML={{ __html: readershipMapDescription }} />
<div>
map here
</div>
</div>
<div className="google-data-studio">
<div dangerouslySetInnerHTML={{ __html: googleDataStudioDescription }} />
<div>
data studio here
</div>
</div>
</Layout>
)
}
export const query = graphql`
query impactPage($id: String!) {
markdownRemark(id: {eq: $id}) {
frontmatter{
title
readershipMapDescription
googleDataStudioDescription
}
}
}
`
export default Impact
......@@ -63,3 +63,11 @@ collections:
- { name: templateKey, label: "Template Key", widget: hidden, default: info-page }
- { name: title, label: Info }
- { name: body, label: Body, widget: markdown }
- file: "src/content/pages/impact.md"
name: impact
label: Impact
fields:
- { name: templateKey, label: "Template Key", widget: hidden, default: impact-page }
- { name: title, label: Impact }
- { name: readershipMapDescription, label: "Readership Map Description", widget: markdown }
- { name: googleDataStudioDescription, label: "Google Data Studio Description", widget: markdown }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment