Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create session detail page #7

Open
Kingdutch opened this issue Jan 22, 2020 · 0 comments
Open

Create session detail page #7

Kingdutch opened this issue Jan 22, 2020 · 0 comments

Comments

@Kingdutch
Copy link
Contributor

Create a page that contains information about a session. Barcelona example: https://barcelona.rustfest.eu/sessions/public-transit-delays

Contains the speaker component from #6

Session data can be added by copying the content/sessions/example.md file.

The exports.createPages method in gatsby-node.js should be adjusted to generate pages for the sessions.

All sessions can be selected with the following query. Speakers are automatically linked. For a single session a filter based on the slug can be added.

allSessions: allMarkdownRemark(
    filter: { fields: { collection: { eq: "sessions" } } }
  ) {
    nodes {
      fields {
        speakers {
          frontmatter {
            name
          }
        }
      }
      frontmatter {
        title
        date
        speakers
      }
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant