Browse Source

Fix posts shorting bug

Fix posts shorting bugs due to multi author.
pull/4/merge
Danang Probo Sayekti 12 years ago
parent
commit
3fac7e03de
2 changed files with 32 additions and 1 deletions
  1. +8
    -1
      system/includes/functions.php
  2. +24
    -0
      themes/default/css/style.css

+ 8
- 1
system/includes/functions.php View File

@ -18,7 +18,7 @@ function get_post_names(){
// Get the names of all the // Get the names of all the
// posts (newest first): // posts (newest first):
$_cache = array_reverse(glob('content/*/blog/*.md'));
$_cache = array_reverse(glob('content/*/blog/*.md', GLOB_NOSORT));
} }
return $_cache; return $_cache;
@ -117,6 +117,7 @@ function get_posts($page = 1, $perpage = 0){
$tmp[] = $post; $tmp[] = $post;
} }
krsort($tmp);
return $tmp; return $tmp;
} }
@ -226,6 +227,7 @@ function get_tag($tag){
} }
} }
krsort($tmp);
return $tmp; return $tmp;
} }
@ -281,6 +283,7 @@ function get_archive($req){
} }
} }
krsort($tmp);
return $tmp; return $tmp;
} }
@ -401,6 +404,7 @@ function get_spage($posts, $spage){
} }
} }
krsort($tmp);
return $tmp; return $tmp;
} }
@ -480,6 +484,7 @@ function get_profile($profile){
} }
} }
krsort($tmp);
return $tmp; return $tmp;
} }
@ -522,6 +527,7 @@ function get_bio($names, $author){
} }
} }
krsort($tmp);
return $tmp; return $tmp;
} }
@ -596,6 +602,7 @@ function get_keyword($keyword){
} }
} }
krsort($tmp);
return $tmp; return $tmp;
} }


+ 24
- 0
themes/default/css/style.css View File

@ -75,6 +75,30 @@ h2{
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
h3{
font: 18px 'Open Sans Condensed', sans-serif;
line-height: 1.2;
margin-bottom: 0.5em;
}
h4{
font: 16px 'Open Sans Condensed', sans-serif;
line-height: 1.2;
margin-bottom: 0.5em;
}
h5{
font: 14px 'Open Sans Condensed', sans-serif;
line-height: 1.2;
margin-bottom: 0.5em;
}
h6{
font: 12px 'Open Sans Condensed', sans-serif;
line-height: 1.2;
margin-bottom: 0.5em;
}
h1.title-post, h2.title-index{ h1.title-post, h2.title-index{
font: 28px 'Open Sans Condensed', sans-serif; font: 28px 'Open Sans Condensed', sans-serif;
line-height: 1.2; line-height: 1.2;


Loading…
Cancel
Save