Commit a4e4f863 authored by Seth A Johnson's avatar Seth A Johnson
Browse files

tagline

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