mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 21:16:23 +05:30
Add limit RSS length
Add option to limit rss length.
This commit is contained in:
parent
7a6e19624f
commit
b47cf3e363
5 changed files with 43 additions and 23 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue