Merge pull request #230 from theshka/master

fix date_formatted issue
This commit is contained in:
Tyler Heshka 2015-05-29 13:39:14 -04:00
commit 48e5c9e500
2 changed files with 22 additions and 23 deletions

View File

@ -26,15 +26,15 @@
*/
// $config['theme'] = 'default'; // Set the theme (defaults to "default")
// $config['twig_config'] = array( // Twig settings
// 'cache' => false, // To enable Twig caching change this to CACHE_DIR
// 'autoescape' => false, // Autoescape Twig vars
// 'debug' => false // Enable Twig debug
// 'cache' => false, // To enable Twig caching change this to CACHE_DIR
// 'autoescape' => false, // Autoescape Twig vars
// 'debug' => false // Enable Twig debug
// );
/*
* CONTENT
*/
// $config['date_format'] = 'jS M Y'; // Set the PHP date format as described here: http://php.net/manual/en/function.strftime.php
// $config['date_format'] = '%D %T'; // Set the PHP date format as described here: http://php.net/manual/en/function.strftime.php
// $config['pages_order_by'] = 'alpha'; // Order pages by "alpha" or "date"
// $config['pages_order'] = 'asc'; // Order pages "asc" or "desc"
// $config['excerpt_length'] = 50; // The pages excerpt length (in words)

View File

@ -1,5 +1,4 @@
<?php
use \ParsedownExtra;
/**
* Pico
@ -192,7 +191,7 @@ class Pico {
'site_title' => 'Pico',
'base_url' => $this->base_url(),
'theme' => 'default',
'date_format' => 'jS M Y',
'date_format' => '%D %T',
'twig_config' => array('cache' => false, 'autoescape' => false, 'debug' => false),
'pages_order_by' => 'alpha',
'pages_order' => 'asc',