Search code examples
collectionsjekyllgithub-pages

Trouble getting collections working with github pages


there.

Here's my config.yaml:

# Permalinks
permalink:        pretty
relative_permalinks: true

# Setup
title:            Tom Critchlow Title
tagline:          My Github Site
url:              http://tomcritchlow.com
paginate:         1
baseurl:          /
author:
  name:           Tom Critchlow
  url:            https://twitter.com/tomcritchlow
  email:          [email protected]


collections:
  - poetry:
    output: true

And here's my folder structure:

-config.yaml
-index.html
-archive.md
_layouts
_poetry
_posts

Yet on my archive page when I do this:

{% for poem in site.poetry %}
  hello world
{% endfor %}

Nothing happens... I'm also struggling to render anything in my poetry collection.

You can see the github repo here:

https://github.com/tomcritchlow/tomcritchlow.github.io

What am I doing wrong? How do you get collections working on Github pages? I'm totally new to github. Thanks.


Solution

  • You had config.yaml instead of _config.yaml