Browse Source

Add tagline

Add tagline and change some of the style.
pull/9/head
Danang Probo Sayekti 12 years ago
parent
commit
bd20002549
8 changed files with 15 additions and 20 deletions
  1. +3
    -2
      system/config.ini
  2. +1
    -0
      system/htmly.php
  3. +4
    -6
      themes/clean/css/style.css
  4. +2
    -2
      themes/clean/layout.html.php
  5. +1
    -1
      themes/clean/post.html.php
  6. +1
    -6
      themes/default/css/style.css
  7. +2
    -2
      themes/default/layout.html.php
  8. +1
    -1
      themes/default/post.html.php

+ 3
- 2
system/config.ini 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"


+ 1
- 0
system/htmly.php 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'),


+ 4
- 6
themes/clean/css/style.css 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;
}
@ -758,4 +756,4 @@ aside .copyright p{
width: 100%;
}
}
}

+ 2
- 2
themes/clean/layout.html.php 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>


+ 1
- 1
themes/clean/post.html.php 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)):?>


+ 1
- 6
themes/default/css/style.css 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;
}
/*-------------------------


+ 2
- 2
themes/default/layout.html.php 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>


+ 1
- 1
themes/default/post.html.php 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)):?>


Loading…
Cancel
Save