Browse Source

Remove hyphen when tagline empty

Remove hyphen when tagline empty.
pull/9/head
Danang Probo Sayekti 12 years ago
parent
commit
341091d82d
2 changed files with 11 additions and 5 deletions
  1. +6
    -4
      system/config.ini
  2. +5
    -1
      system/htmly.php

+ 6
- 4
system/config.ini View File

@ -3,8 +3,8 @@ site.url = ""
; Blog info ; Blog info
blog.title = "HTMLy" 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." blog.copyright = "(c) Your name."
; Social account ; Social account
@ -25,16 +25,18 @@ google.publisher = ""
; Google analytics ; Google analytics
google.analytics.id = "" google.analytics.id = ""
; Pagination, related posts, RSS, and JSON
; Pagination, RSS, and JSON
posts.perpage = "5" posts.perpage = "5"
tag.perpage = "10" tag.perpage = "10"
archive.perpage = "10" archive.perpage = "10"
search.perpage = "10" search.perpage = "10"
profile.perpage = "30" profile.perpage = "30"
related.count = "4"
rss.count = "30" rss.count = "30"
json.count = "10" json.count = "10"
; Related posts
related.count = "4"
; Author info on blog post. Set "true" or "false". ; Author info on blog post. Set "true" or "false".
author.info = "true" author.info = "true"


+ 5
- 1
system/htmly.php View File

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


Loading…
Cancel
Save