mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 20:16:22 +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
|
|
@ -3,8 +3,8 @@ site.url = ""
|
|||
|
||||
; Blog info
|
||||
blog.title = "HTMLy"
|
||||
blog.tagline = "Databaseless Blogging Platform"
|
||||
blog.description = "This blog is powered by HTMLy, a databaseless blogging platform."
|
||||
blog.tagline = "Just another HTMLy blog"
|
||||
blog.description = "Proudly powered by HTMLy, a databaseless blogging platform."
|
||||
blog.copyright = "(c) Your name."
|
||||
|
||||
; Social account
|
||||
|
|
@ -25,16 +25,18 @@ google.publisher = ""
|
|||
; Google analytics
|
||||
google.analytics.id = ""
|
||||
|
||||
; Pagination, related posts, RSS, and JSON
|
||||
; Pagination, RSS, and JSON
|
||||
posts.perpage = "5"
|
||||
tag.perpage = "10"
|
||||
archive.perpage = "10"
|
||||
search.perpage = "10"
|
||||
profile.perpage = "30"
|
||||
related.count = "4"
|
||||
rss.count = "30"
|
||||
json.count = "10"
|
||||
|
||||
; Related posts
|
||||
related.count = "4"
|
||||
|
||||
; Author info on blog post. Set "true" or "false".
|
||||
author.info = "true"
|
||||
|
||||
|
|
|
|||
|
|
@ -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