Child Collection

I am having issues getting the children to show up in my collection. It is showing there are two children, which is correct. I just can’t seem to get it to show the YAML info I need.

{% for child in page.collection %}
  <li>{{ child.header.title }}</li>
{% endfor %}

YAML:

title: Sample Photo
menu: sample_photo
class: ""
galleryinfo:
    date: May 25-27, 2015
    video:
    id: photo
    placeholder: opgp1_thumb.jpg
photos: 
    - modalid: 1
      image: opgp1.jpg
      title: Paradigm 
      desc: "Donec id elit non mi porta gravida at eget metus. Cras mattis consectetur purus sit amet fermentum."
    - modalid: 2
      image: opgp2.jpg (...)

(cont. down to list 10 photos)
```
I have done this in several different places already, I just can't seem to see a difference in what I am doing here.

ok…

The solution/problem seems really dumb. I didn’t have another line in my .md file after the closing — of the YAML. It’s showing fine by just adding a return to that line.

Hmm… that’s strange, because I distinctly remember testing that. I’ll check it again though. Glad you found a simple work-around.

FYI i just checked and a blank line should not be required after the closing --- of the header frontmatter. Works for me with or without it.

it was just a weird, late night. I was trying all kinds of different things. It might have been a coincidence that it worked after I changed the .md file.