mmistakes / minimal-mistakes

:triangular_ruler: Jekyll theme for building a personal site, blog, project documentation, or portfolio.
https://mmistakes.github.io/minimal-mistakes/
MIT License
12.42k stars 25.6k forks source link

creating page showing list of files for collection #1505

Closed benslack19 closed 6 years ago

benslack19 commented 6 years ago

Environment informations


Expected behavior

Hi again Michael, I’m trying to create a page that has links to all of my markdown files in a certain folder. (The folder also contains Jupyter notebooks from which the markdown files were created.)

It sounds like I’m making a collection, so I’ve been following this, your example with recipes here, while also looking at the structure of your test unit here.

This is what I’ve done (note that my “mynotes” is akin to your “recipes”):

From these sources, I think I’ve done everything I needed to do, yet the page where I expect my list of linked markdown files is empty as shown below.

screen shot 2018-01-28 at 11 20 44 am

My repository is here for reference.

Any tips or advice would be very much appreciated!

mmistakes commented 6 years ago

Doesn't look like a theme issue to me. You're better off asking for general Jekyll related help on their talk forum.

It looks to me like you don't have any valid collection documents in _mynotes. Jekyll will only process files with YAML Front matter. I didn't see any files in that folder that meet that requirement. Even though there are .md files I believe Jekyll still needs the --- front matter to do is thing.

That's why your collection index page appears empty.

benslack19 commented 6 years ago

an, ok! i overlooked a simple fix. adding yaml to my markdown files was all i needed. thanks!