sportstimes / gatsby-template

Wesbite template for creating sports calendars using Gatsby
MIT License
3 stars 2 forks source link

Generate events from single JSON source #5

Open si opened 5 years ago

si commented 5 years ago

Structure suitable data format as JSON for parsing into reusable open formats like HTML, Microformats, ICS and RSS using all of them as guides.

Maybe use this tutorial for generating content https://github.com/gatsbyjs/gatsby/blob/master/docs/docs/programmatically-create-pages-from-data.md

{
  calendarName : 'Rugby World Cup',
  'events' : [
    {
      'summary' : 'Japan v Russia',
      'dtstart' : '2019-09-20T11:45:00Z',
      'dtend' : '2019-09-20T13:30:00Z',
      'location' : 'Location Name',
      'description' : 'Full description of event details, possibly rich text with <abbr>HTML</abbr>',
    } 
  ]
}

(Using Rugby World Cup 2019 as a source of data)