Add tagline

Add tagline and change some of the style.
This commit is contained in:
Danang Probo Sayekti 2014-01-13 14:25:51 +07:00
commit bd20002549
8 changed files with 15 additions and 20 deletions

View file

@ -3,7 +3,8 @@ site.url = ""
; Blog info
blog.title = "HTMLy"
blog.description = "Databaseless Blogging Platform."
blog.tagline = "Databaseless Blogging Platform"
blog.description = "This blog is powered by HTMLy, a databaseless blogging platform."
blog.copyright = "(c) Your name."
; Social account
@ -24,7 +25,7 @@ google.publisher = ""
; Google analytics
google.analytics.id = ""
; Pagination, RSS, and JSON
; Pagination, related posts, RSS, and JSON
posts.perpage = "5"
tag.perpage = "10"
archive.perpage = "10"

View file

@ -29,6 +29,7 @@ get('/index', function () {
}
render('main',array(
'title' => config('blog.title') .' - '. config('blog.tagline'),
'page' => $page,
'posts' => $posts,
'canonical' => config('site.url'),

View file

@ -302,7 +302,7 @@ aside{
padding-top: 65px;
}
aside .description p{
aside .blog-tagline p{
font-size: 14px;
margin-bottom: 1.2em;
color:#787878;
@ -375,12 +375,10 @@ aside .copyright p{
font-family: 'Open Sans Condensed',sans-serif;
width:100%;
float:left;
margin-bottom: 1em;
}
.related ul {
margin-top:0;
margin-bottom: 1em;
margin:0;
}
/*----------------------------
@ -652,7 +650,7 @@ aside .copyright p{
text-align: center;
}
aside .description{
aside .blog-tagline{
margin-bottom: 25px;
}

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title><?php echo isset($title) ? _h($title) : config('blog.title') ?></title>
<title><?php echo $title; ?></title>
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
@ -23,7 +23,7 @@
</div>
<aside>
<h1 class="blog-title"><a href="<?php echo site_url() ?>"><?php echo config('blog.title') ?></a></h1>
<div class="description"><p><?php echo config('blog.description')?></p></div>
<div class="blog-tagline"><p><?php echo config('blog.tagline')?></p></div>
<div class="search">
<?php echo search() ?>
</div>

View file

@ -27,6 +27,7 @@
</div>
</div>
<?php endif;?>
<?php if ($type == 'blogpost'):?><?php echo get_related($p->tag)?><?php endif;?>
<div class="comments border">
<?php if ($type == 'blogpost'):?>
<?php if (disqus(null, null) == true):?>
@ -34,7 +35,6 @@
<?php endif;?>
<?php endif;?>
</div>
<?php if ($type == 'blogpost'):?><?php echo get_related($p->tag)?><?php endif;?>
<?php if ($type == 'blogpost'):?>
<div class="postnav">
<?php if (!empty($next)):?>

View file

@ -443,13 +443,8 @@ h1.title-post a:hover, h2.title-index a:hover {
margin-bottom: 1em;
}
.related h4 {
margin-top: 0;
}
.related ul {
margin-top:0;
margin-bottom: 1em;
margin:0;
}
/*-------------------------

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title><?php echo isset($title) ? _h($title) : config('blog.title') ?></title>
<title><?php echo $title; ?></title>
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
@ -35,7 +35,7 @@
<header id="header">
<section id="branding">
<h1 class="blog-title"><a href="<?php echo site_url() ?>"><?php echo config('blog.title') ?></a></h1>
<div class="description"><p><?php echo config('blog.description')?></p></div>
<div class="blog-tagline"><p><?php echo config('blog.tagline')?></p></div>
</section>
</header>
</div>

View file

@ -27,6 +27,7 @@
</div>
</div>
<?php endif;?>
<?php if ($type == 'blogpost'):?><?php echo get_related($p->tag)?><?php endif;?>
<div class="comments border">
<?php if ($type == 'blogpost'):?>
<?php if (disqus(null, null) == true):?>
@ -34,7 +35,6 @@
<?php endif;?>
<?php endif;?>
</div>
<?php if ($type == 'blogpost'):?><?php echo get_related($p->tag)?><?php endif;?>
<?php if ($type == 'blogpost'):?>
<div class="postnav">
<?php if (!empty($next)):?>