Add welcome message

Add welcome message if no published post instead 404 error.
This commit is contained in:
Danang Probo Sayekti 2014-01-21 22:34:36 +07:00
commit 13a0696eda
2 changed files with 14 additions and 1 deletions

View file

@ -26,7 +26,8 @@ get('/index', function () {
if(empty($posts) || $page < 1){
// a non-existing page
not_found();
welcome_page();
die;
}
$tl = config('blog.tagline');