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

event to navbar; fix event date field

parent 2448b358
...@@ -57,6 +57,11 @@ const Navbar = () => { ...@@ -57,6 +57,11 @@ const Navbar = () => {
News News
</Link> </Link>
</li> </li>
<li>
<Link to="/events" className="nav-link">
Events
</Link>
</li>
</ul> </ul>
</div> </div>
</nav> </nav>
......
--- ---
templateKey: event templateKey: event
title: An Duck Event title: An Duck Event
data: 2019-11-11T20:11:21.024Z date: 2019-11-11T20:11:21.024Z
image: /assets/collection-of-cute-baby-duck.jpg image: /assets/collection-of-cute-baby-duck.jpg
--- ---
Sit amet tellus cras adipiscing enim eu turpis egestas pretium. Sed felis eget velit aliquet sagittis. Lacus laoreet non curabitur gravida. Eu turpis egestas pretium aenean. Orci ac auctor augue mauris augue neque. Sit amet facilisis magna etiam tempor. Eget mauris pharetra et ultrices neque ornare aenean euismod elementum. Morbi tristique senectus et netus et. Mattis enim ut tellus elementum sagittis vitae. Odio tempor orci dapibus ultrices in. Maecenas accumsan lacus vel facilisis volutpat est velit egestas dui. Eu augue ut lectus arcu bibendum at varius vel pharetra. Sit amet tellus cras adipiscing enim eu turpis egestas pretium. Sed felis eget velit aliquet sagittis. Lacus laoreet non curabitur gravida. Eu turpis egestas pretium aenean. Orci ac auctor augue mauris augue neque. Sit amet facilisis magna etiam tempor. Eget mauris pharetra et ultrices neque ornare aenean euismod elementum. Morbi tristique senectus et netus et. Mattis enim ut tellus elementum sagittis vitae. Odio tempor orci dapibus ultrices in. Maecenas accumsan lacus vel facilisis volutpat est velit egestas dui. Eu augue ut lectus arcu bibendum at varius vel pharetra.
......
...@@ -7,7 +7,6 @@ const Event = ({data}) => { ...@@ -7,7 +7,6 @@ const Event = ({data}) => {
const { html } = data.markdownRemark const { html } = data.markdownRemark
const { title, date, image } = data.markdownRemark.frontmatter const { title, date, image } = data.markdownRemark.frontmatter
return ( return (
<Layout> <Layout>
<h1>{title}</h1> <h1>{title}</h1>
......
...@@ -28,7 +28,7 @@ collections: ...@@ -28,7 +28,7 @@ collections:
fields: fields:
- { name: templateKey, label: "Template Key", widget: hidden, default: event } - { name: templateKey, label: "Template Key", widget: hidden, default: event }
- { name: title, label: Title } - { name: title, label: Title }
- { name: data, label: Published, widget: datetime } - { name: date, label: Published, widget: datetime }
- { name: image, label: Image, widget: image } - { name: image, label: Image, widget: image }
- { name: body, label: Body, widget: markdown } - { name: body, label: Body, widget: markdown }
- name: books - name: books
......
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