diff --git a/config.php.template b/config.php.template index f9f2209..35b7799 100644 --- a/config.php.template +++ b/config.php.template @@ -17,6 +17,10 @@ $config['pages_order'] = 'asc'; // Order pages "asc" or "desc" $config['excerpt_length'] = 50; // The pages excerpt length (in words) $config['content_dir'] = 'content-sample/'; // Content directory. +// Specify timezone if required + +date_default_timezone_set('UTC'); + // To add a custom config setting: $config['custom_setting'] = 'Hello'; // Can be accessed by {{ config.custom_setting }} in a theme diff --git a/lib/pico.php b/lib/pico.php index d2fcd21..0743897 100644 --- a/lib/pico.php +++ b/lib/pico.php @@ -247,7 +247,7 @@ class Pico { 'date' => isset($page_meta['date']) ? $page_meta['date'] : '', 'date_formatted' => isset($page_meta['date']) ? utf8_encode(strftime($config['date_format'], strtotime($page_meta['date']))) : '', 'content' => $page_content, - 'excerpt' => $this->limit_words(strip_tags($page_content), $excerpt_length) + 'excerpt' => $this->limit_words(strip_tags($page_content), $excerpt_length), //this addition allows the 'description' meta to be picked up in content areas... specifically to replace 'excerpt' 'description' => isset($page_meta['description']) ? $page_meta['description'] : '',