Skip to content

Commit

Permalink
feat(meeting): supported multiple talks per meeting
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Jun 10, 2020
1 parent 8e4aecb commit e7bc0ae
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 95 deletions.
7 changes: 7 additions & 0 deletions content/hosts/imt-group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
location: The IMT Group
address: 4445 Corporate Dr
city: West Des Moines
state: IA
zip: 50266
---
11 changes: 11 additions & 0 deletions content/meetings/2013-05-14/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
date: 2013-05-14
time:
start: 6:00pm
end: 7:00pm
host: The IMT Group
sponsor: The IMT Group
talks:
- talk: JavaScript Game Development
- talk: Writing JavaScript like a grown-up
---
3 changes: 2 additions & 1 deletion content/meetings/2018-03-13/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ time:
end: 7:00pm
host: Gravitate
sponsor: Robert Half
talk: An Introduction to Transducers
talks:
- talk: An Introduction to Transducers
---
3 changes: 2 additions & 1 deletion content/meetings/2018-06-19/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ time:
end: 7:00pm
host: Source Allies
sponsor: Source Allies
talk: Serverless through AWS SAM
talks:
- talk: Serverless through AWS SAM
---
3 changes: 3 additions & 0 deletions content/sponsors/imt-group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: The IMT Group
---
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
title: 'dsmJS - Des Moines JavaScript User Group'
},
mapping: {
'MarkdownRemark.frontmatter.talk': 'MarkdownRemark.frontmatter.title',
'MarkdownRemark.frontmatter.talks.talk': 'MarkdownRemark.frontmatter.title',
'MarkdownRemark.frontmatter.speaker': 'MarkdownRemark.frontmatter.name',
'MarkdownRemark.frontmatter.sponsor': 'MarkdownRemark.frontmatter.name',
'MarkdownRemark.frontmatter.host': 'MarkdownRemark.frontmatter.location'
Expand Down
110 changes: 44 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"remark-frontmatter": "2.0.0"
},
"dependencies": {
"@dsmjs/components": "3.5.11",
"@dsmjs/components": "4.0.0-alpha.2",
"gatsby": "2.19.12",
"gatsby-link": "2.4.2",
"gatsby-plugin-glamor": "2.3.4",
Expand Down
8 changes: 5 additions & 3 deletions src/pages/archive/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ export const meetingsQuery = graphql`
}
frontmatter {
date(formatString: "MMMM DD, YYYY")
talk {
frontmatter {
title
talks {
talk {
frontmatter {
title
}
}
}
}
Expand Down
24 changes: 13 additions & 11 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default function SiteIndex({data}) {
sponsor={frontmatter.sponsor.frontmatter}
meeting={frontmatter}
host={frontmatter.host.frontmatter}
talk={frontmatter.talk.frontmatter}
content={frontmatter.talk.html}
talks={frontmatter.talks}
content={frontmatter.talks[0].talk.html}
/>
</Layout>
);
Expand Down Expand Up @@ -52,15 +52,17 @@ export const query = graphql`
address
}
}
talk {
html
frontmatter {
title
speaker {
frontmatter {
name
github
twitter
talks {
talk {
html
frontmatter {
title
speaker {
frontmatter {
name
github
twitter
}
}
}
}
Expand Down
24 changes: 13 additions & 11 deletions src/templates/meeting.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default function ArchivedMeeting({data}) {
sponsor={frontmatter.sponsor.frontmatter}
meeting={frontmatter}
host={frontmatter.host.frontmatter}
talk={frontmatter.talk.frontmatter}
content={frontmatter.talk.html}
talks={frontmatter.talks}
content={frontmatter.talks[0].talk.html}
/>
</Layout>
);
Expand Down Expand Up @@ -54,15 +54,17 @@ export const query = graphql`
address
}
}
talk {
html
frontmatter {
title
speaker {
frontmatter {
name
github
twitter
talks {
talk {
html
frontmatter {
title
speaker {
frontmatter {
name
github
twitter
}
}
}
}
Expand Down

0 comments on commit e7bc0ae

Please sign in to comment.