Date in .md not file date
juanbrujo opened this issue · comments
Jorge Epuñan commented
I noticed CMS.js uses file creation/modification date to order posts. Is there any chance to use Date field in .md file to do so?
---
layout: post
title: post title
date: 20160729
---
Zam commented
It's possible to rewrite it to support that but it's a bit of work to do.
Right now the date is taken from the filename (334), to load it from the front matter you would have to go down to getContent > parseContent... and it looks like your case is already covered on line 222.
If it doesn't work go and inspect that area t check what date is actually set in your case and work from there.
Chris Diana commented
Resolved in v2.0.