mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 13:06:22 +05:30
Add welcome message
Add welcome message if no published post instead 404 error.
This commit is contained in:
parent
a2e96a7b51
commit
13a0696eda
2 changed files with 14 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue