mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 11:36:20 +05:30
Remove hyphen when tagline empty
Remove hyphen when tagline empty.
This commit is contained in:
parent
bd20002549
commit
341091d82d
2 changed files with 11 additions and 5 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue