Add limit RSS length

Add option to limit rss length.
This commit is contained in:
Danang Probo Sayekti 2014-02-07 20:21:05 +07:00
commit b47cf3e363
5 changed files with 43 additions and 23 deletions

View file

@ -27,8 +27,15 @@ get('/index', function () {
$total = '';
if(empty($posts) || $page < 1){
// a non-existing page
welcome_page();
render('no-posts',array(
'title' => config('blog.title'),
'canonical' => site_url(),
'description' => config('blog.description'),
'bodyclass' => 'noposts',
));
die;
}