Pico is a stupidly simple, blazing fast, flat file CMS.
Find a file
Andrew Tajsic 7dcc2b6ed9 Update pico.php
This is only a suggestion and could be expanded and changed but for my project and what I'm working on this seemed good enough.

Essentially this allows the possibility for the Date: meta field within the markdown content files to be written in various ways which will all be converted to ISO YYYY-MM-DD-ID before being sorted. This should also in theory speed up the process on much larger sites.

Additionally, I've changed how files without a date are sorted within the array: by the date the page was last modified. 

So essentially the logic goes:

if meta.date then meta.date else page.modified > sort

This could be expanded to allow the date modified to be read by the date_formatted or what have you, however it could break some people's sites whereby they utilise various data attribute within twig. Though one would assume they would be doing this on the date meta identifier. 

Anyhow, food for thought.

- Andrew
:)
2013-07-24 11:05:06 +10:00
content v0.6.2 2013-05-07 10:09:03 +01:00
lib Update pico.php 2013-07-24 11:05:06 +10:00
plugins v0.6 2013-05-06 16:38:38 +01:00
themes v0.6 2013-05-06 16:38:38 +01:00
vendor v0.6 2013-05-06 16:38:38 +01:00
.gitignore Update Twig (now uses composer) and add composer.json. 2013-04-26 17:22:30 +01:00
.htaccess Initial commit. 2012-04-04 14:45:09 +01:00
changelog.txt v0.6.2 2013-05-07 16:27:39 +01:00
composer.json Update Twig (now uses composer) and add composer.json. 2013-04-26 17:22:30 +01:00
config.php v0.6.2 2013-05-07 10:09:03 +01:00
index.php v0.6 2013-05-06 16:38:38 +01:00
license.txt Initial commit. 2012-04-04 14:45:09 +01:00
README.md Updating README 2013-05-08 14:34:29 +01:00

Pico

Pico is a stupidly simple, blazing fast, flat file CMS. See http://pico.dev7studios.com for more info.