Home
Support Forums

Deployment Issue | 11ty, Netlify & Netlify CMS w/ GitHub

Hi using 11ty, Netlify & Netlify CMS w/ Github Deployment. It works as expected on my machine but when it’s built the 11ty default collection sort order is not being respected. It’s sorting alphabetically rather than by date in ascending order.

I’ve tried a ton of stuff and no dice. It’s a big deal for my client.

Throw me a life raft or something!

Thanks much – Rob

Hi there, @rjhoskins :wave:

It looks like this thread has been a bit quiet since you first posted! A couple of questions:

  1. Is this issue still occurring?
  2. When you say “I’ve tried a ton of stuff”, can you outline some of the steps you have taken? This will be helpful for us to avoid repeat advice as well as have an idea of what your workflow has been.
  3. Can you share your Netlify site name as well as your most recent build log?

Additionally, here are some helpful Eleventy threads to check out:
Deploying issues
Deploy fail
Eleventy build command

Thanks in advance :slight_smile:

Hi Hilary – 11ty’s default sorting doesn’t seem to work with Netlify & Github. I had a folder level data file instructing 11ty to use the created date and then created/committed the files one-by-one so their dates would be same as my local machine (one of fixes I tried);

I had found previously that committing all the files at once resulted in all the files having the same file creation date on Github. All the 11ty collection items have the same creation date once they are processed by the build bot too.

11ty w/ Github needs an explicit date field to work in the front matter on Netlify instead of the implicit filesystem date that works locally. The difference is between collections.collection.item.date & collections.collection.item.data.date

Thanks for checking in on this
– Rob

Hi there! Thanks for your interest in Netlify CMS. Looks like you posted your question a little while ago, but that you haven’t received a solution yet. Here’s where you might get more help:

netlifycms.org - the site houses our extensive documentation that likely contains helpful information to get you back on track.

netlify cms slack - join our friendly slack channel and chat with other cms pros to get the help you need.

GitHub Issues - think you’ve found a bug, or would like to make a feature request? Make your voice heard here. Netlify CMS is open source - PRs and other contributions are also welcome!

Stack Overflow Check StackOverflow for questions tagged “Netlify CMS” if you don’t get an answer in the Slack or the GH issues. StackOverflow reaches a worldwide audience of knowledgeable people.

Your question will be left open here for anyone to comment - but we encourage you to check out the above resources if you are still looking for a solution!