Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit 83201bbb authored by Seth A Johnson's avatar Seth A Johnson
Browse files

HELIO-3143, HELIO-3144 add summary to events, news

parent 4bda5785
......@@ -4,14 +4,16 @@ import Img from "gatsby-image"
const BookCover = ({book}) => {
return (
<div className="card mb-3 lever-card">
<div className="row no-gutters">
<div className="col-md-12">
<Img fluid={book.cover.childImageSharp.fluid}
alt={`cover of ${book.title}`}
className="cover-only-img"
/>
<a href={book.readLink}>
<div className="row no-gutters">
<div className="col-md-12">
<Img fluid={book.cover.childImageSharp.fluid}
alt={`cover of ${book.title}`}
className="cover-only-img"
/>
</div>
</div>
</div>
</a>
</div>
)
}
......
......@@ -3,7 +3,7 @@ import Img from "gatsby-image"
import {Link} from "gatsby"
const EventCard = ({event, cardStyle}) => {
const {title, date, image} = event.frontmatter
const {title, summary, date, image} = event.frontmatter
const slug = event.fields.slug
return (
......@@ -13,7 +13,8 @@ const EventCard = ({event, cardStyle}) => {
<Img fluid={image.childImageSharp.fluid} />
<div className="media-body">
<h5 className="mt-0 mb-1">{title}</h5>
Summary of the event goes here.
<p>{summary}</p>
<small className="text-muted">Published {date}</small>
</div>
</li>
</Link>
......
......@@ -3,7 +3,7 @@ import Img from "gatsby-image"
import {Link} from "gatsby"
const NewsCard = ({singleNews, cardStyle}) => {
const {title, date, image} = singleNews.frontmatter
const {title, summary, date, image} = singleNews.frontmatter
const slug = singleNews.fields.slug
......@@ -18,7 +18,7 @@ const NewsCard = ({singleNews, cardStyle}) => {
<div className="col-md-8">
<div className="card-body">
<h5 className="card-title">{title}</h5>
<p className="card-text">Summary of the blog post goes here.</p>
<p className="card-text">{summary}</p>
<p className="published"><small className="text-muted">Published {date}</small></p>
</div>
</div>
......
---
templateKey: event
title: 'Charleston Conference, Nov 4-8'
summary: Summary of the event goes here
date: 2019-11-01T19:11:21.024Z
image: /assets/clc-2019_header_small.jpg
---
......
---
templateKey: news
title: Update from the Lever Press Annual Meeting
summary: Summary of the blog post goes here
date: 2019-09-24T14:23:41.310Z
image: /assets/screen-shot-2019-11-18-at-11.41.57-am.png
---
......
---
templateKey: news
title: From the Director
summary: Summary of the blog post goes here.
date: 2019-09-27T14:29:55.200Z
image: /assets/screen-shot-2019-11-18-at-11.46.18-am.png
---
......
......@@ -35,6 +35,7 @@ export const query = graphql`
html
frontmatter {
title
summary
date(formatString:"MMMM Do, YYYY")
image{
childImageSharp{
......
......@@ -92,6 +92,7 @@ query {
html
frontmatter {
title
summary
date(formatString:"MMMM Do, YYYY")
image{
childImageSharp{
......@@ -123,6 +124,7 @@ query {
html
frontmatter {
title
summary
date(formatString:"MMMM Do, YYYY")
image{
childImageSharp{
......
......@@ -35,6 +35,7 @@ export const query = graphql`
html
frontmatter {
title
summary
date(formatString:"MMMM Do, YYYY")
image{
childImageSharp{
......
......@@ -25,6 +25,7 @@ query ($id: String!) {
html
frontmatter {
title
summary
date(formatString: "MMMM Do, YYYY")
image {
childImageSharp {
......
......@@ -26,6 +26,7 @@ query ($id: String!) {
html
frontmatter {
title
summary
date(formatString: "MMMM Do, YYYY")
image {
childImageSharp {
......
......@@ -17,6 +17,7 @@ collections:
fields:
- { name: templateKey, label: "Template Key", widget: hidden, default: news }
- { name: title, label: Title }
- { name: summary, label: Summary }
- { name: date, label: Published, widget: datetime }
- { name: image, label: Image, widget: image }
- { name: body, label: Body, widget: markdown }
......@@ -28,6 +29,7 @@ collections:
fields:
- { name: templateKey, label: "Template Key", widget: hidden, default: event }
- { name: title, label: Title }
- { name: summary, label: Summary }
- { name: date, label: Published, widget: datetime }
- { name: image, label: Image, widget: image }
- { name: body, label: Body, widget: markdown }
......
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