Commit 4c1d2230 authored by Seth A Johnson's avatar Seth A Johnson
Browse files

Merge branch 'tagline-2' into 'master'

tagline

See merge request about-leverpress!3
parents 5f0e411d a4e4f863
......@@ -31,6 +31,12 @@ body {
.tagline-container {
grid-area: tagline;
background: pink;
.tagline {
font-weight: bold;
font-size: 2rem;
}
}
.newsletter-container {
......@@ -63,7 +69,6 @@ body {
// card stuff
.lever-card-list {
display: flex;
......
---
templateKey: home-page
tagline_section:
taglineSection:
text: A tagline for Lever Press
---
......@@ -6,10 +6,12 @@ import BookList from "../components/books/bookList"
import {graphql} from "gatsby"
export const IndexQuery = graphql`
{
content: markdownRemark(frontmatter: { templateKey: { eq: "home-page" } }) {
query {
markdownRemark(frontmatter: { templateKey: { eq: "home-page" } }) {
frontmatter{
templateKey
taglineSection{
text
}
}
}
}
......@@ -23,6 +25,14 @@ const IndexPage = ({data}) => {
<div className="index-grid">
<div className="books">
<BookList />
<div class="tagline-container">
<div class="tagline">
{ data.markdownRemark.frontmatter.taglineSection.text}
</div>
</div>
<div class="newsletter-container">
newsletter
</div>
</div>
</div>
</Layout>
......
......@@ -54,7 +54,7 @@ collections:
label: Home
fields:
- { name: templateKey, label: "Template Key", widget: hidden, default: home-page }
- name: tagline_section
- name: taglineSection
label: "Tag Line Section"
widget: object
fields:
......
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