diff --git a/system/includes/functions.php b/system/includes/functions.php index eb1f7c3..e956167 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -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; } diff --git a/themes/default/css/style.css b/themes/default/css/style.css index 564c5fb..a602169 100644 --- a/themes/default/css/style.css +++ b/themes/default/css/style.css @@ -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;