Remove hyphen when tagline empty

Remove hyphen when tagline empty.
This commit is contained in:
Danang Probo Sayekti 2014-01-13 17:16:40 +07:00
commit 341091d82d
2 changed files with 11 additions and 5 deletions

View file

@ -28,8 +28,12 @@ get('/index', function () {
not_found();
}
$tl = config('blog.tagline');
if($tl){ $tagline = ' - ' . $tl;} else {$tagline = '';}
render('main',array(
'title' => config('blog.title') .' - '. config('blog.tagline'),
'title' => config('blog.title') . $tagline,
'page' => $page,
'posts' => $posts,
'canonical' => config('site.url'),