mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 20:46:26 +05:30
Fix posts shorting bug
Fix posts shorting bugs due to multi author.
This commit is contained in:
parent
92c8168e09
commit
3fac7e03de
2 changed files with 32 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ function get_post_names(){
|
|||
// Get the names of all the
|
||||
// posts (newest first):
|
||||
|
||||
$_cache = array_reverse(glob('content/*/blog/*.md'));
|
||||
$_cache = array_reverse(glob('content/*/blog/*.md', GLOB_NOSORT));
|
||||
}
|
||||
|
||||
return $_cache;
|
||||
|
|
@ -117,6 +117,7 @@ function get_posts($page = 1, $perpage = 0){
|
|||
$tmp[] = $post;
|
||||
}
|
||||
|
||||
krsort($tmp);
|
||||
return $tmp;
|
||||
}
|
||||
|
||||
|
|
@ -226,6 +227,7 @@ function get_tag($tag){
|
|||
}
|
||||
}
|
||||
|
||||
krsort($tmp);
|
||||
return $tmp;
|
||||
}
|
||||
|
||||
|
|
@ -281,6 +283,7 @@ function get_archive($req){
|
|||
}
|
||||
}
|
||||
|
||||
krsort($tmp);
|
||||
return $tmp;
|
||||
}
|
||||
|
||||
|
|
@ -401,6 +404,7 @@ function get_spage($posts, $spage){
|
|||
}
|
||||
}
|
||||
|
||||
krsort($tmp);
|
||||
return $tmp;
|
||||
}
|
||||
|
||||
|
|
@ -480,6 +484,7 @@ function get_profile($profile){
|
|||
}
|
||||
}
|
||||
|
||||
krsort($tmp);
|
||||
return $tmp;
|
||||
}
|
||||
|
||||
|
|
@ -522,6 +527,7 @@ function get_bio($names, $author){
|
|||
}
|
||||
}
|
||||
|
||||
krsort($tmp);
|
||||
return $tmp;
|
||||
}
|
||||
|
||||
|
|
@ -596,6 +602,7 @@ function get_keyword($keyword){
|
|||
}
|
||||
}
|
||||
|
||||
krsort($tmp);
|
||||
return $tmp;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,6 +75,30 @@ h2{
|
|||
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{
|
||||
font: 28px 'Open Sans Condensed', sans-serif;
|
||||
line-height: 1.2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue