Merge pull request #113 from Snip1/master

Update pico.php
This commit is contained in:
picocms 2015-04-21 14:28:42 +01:00
commit 80fa39769c

View file

@ -248,6 +248,9 @@ class Pico {
'date_formatted' => isset($page_meta['date']) ? date($config['date_format'], strtotime($page_meta['date'])) : '',
'content' => $page_content,
'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'] : '',
);
// Extend the data provided with each page by hooking into the data array