Skip to content

Commit

Permalink
fix organizers, idk what that was
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraVieira committed Feb 16, 2024
1 parent 2d07e09 commit 99d79da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion data/new-york-2024.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sponsors:
- name: Reaktor
link: https://reaktor.com
media: https://i.imgur.com/bmJTxU4.jpg
speakers:
organizers:
- name: 3dwardsharp
mc: true
githubLink: edwardsharp
Expand Down
11 changes: 7 additions & 4 deletions src/pages/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import Heading from '../components/Heading'
import Announcement from '../components/Announcement'

const Main = ({ city, attendees }) => {
const { site, thanks, speakers, sponsors, info, mainOrganizer, announcement } = city
const { site, thanks, speakers, sponsors, info, mainOrganizer, announcement, organizers } = city
const hasHeading = !site.fullDescription
? {
heading: 'What?'
}
: {}

const cityOrganizers = mainOrganizer || organizers
return (
<Layout>
<SEO
Expand Down Expand Up @@ -70,9 +72,10 @@ const Main = ({ city, attendees }) => {
<Sponsors sponsors={sponsors} />
</Panel>
)}
{mainOrganizer && mainOrganizer.length > 0 ? (
<Panel heading={mainOrganizer.length > 1 ? 'Organizers' : 'Organizer'}>
<Organizers organizers={mainOrganizer} />

{cityOrganizers?.length ? (
<Panel heading={cityOrganizers?.length > 1 ? 'Organizers' : 'Organizer'}>
<Organizers organizers={cityOrganizers} />
</Panel>
) : null}
</section>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/city.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const City = ({ data = {} }) => {
export default City

export const query = graphql`
query($slug: String!) {
query ($slug: String!) {
allAirtable(filter: { data: { city: { eq: $slug } } }) {
edges {
node {
Expand Down

0 comments on commit 99d79da

Please sign in to comment.