avillafiorita / jekyll-datapage_gen

Generate one page per yaml record in Jekyll sites.
369 stars 80 forks source link

Cannot generate from more than 2 sources #34

Closed mitchs91 closed 6 years ago

mitchs91 commented 6 years ago

My site requires me to work from a number of YML data sources. I found your plugin incredibly useful for creating a staff directory, so I planned to extend it to some other pages where it would be useful to just generate them off the data source.

When I added a second it worked perfectly, but when I added a 3rd, they all broke.

Any guidance on this issue would be massively appreciated.

Example code:

page_gen:
  - data: 'contacts'
    template: 'profile'
    name: 'name'
    dir: 'field-support/contacts/'

page_gen:
  - data: 'cbt'
    template: 'profile'
    name: 'title'
    dir: 'CBT/'

page_gen:
  - data: 'platform-reference'
    template: 'profile'
    name: 'title'
    dir: 'platform-reference/'

2 of these will work, in any order. But 3 will not.

mitchs91 commented 6 years ago

I'm just going to go ahead and close this since it was a formatting error on my behalf. Since I was leading each group with page_gen: it wasn't working. Staring at the same issue for too long.