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 info
blog.title = "HTMLy" 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." blog.copyright = "(c) Your name."
; Social account ; Social account
@ -24,7 +25,7 @@ google.publisher = ""
; Google analytics ; Google analytics
google.analytics.id = "" google.analytics.id = ""
; Pagination, RSS, and JSON ; Pagination, related posts, RSS, and JSON
posts.perpage = "5" posts.perpage = "5"
tag.perpage = "10" tag.perpage = "10"
archive.perpage = "10" archive.perpage = "10"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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