diff --git a/system/htmly.php b/system/htmly.php index edda1ff..01157e9 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -1668,7 +1668,7 @@ get('/post/:name', function ($name) { } if (config('blog.enable') === 'true') { - $blog = ' Blog » '; + $blog = ' Blog » '; } else { $blog = ''; } @@ -1680,7 +1680,7 @@ get('/post/:name', function ($name) { 'p' => $current, 'author' => $author, 'bodyclass' => 'inpost', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . $current->category . ' » ' . $current->title, + 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . '' . $current->categoryb . '' . ' » ' . $current->title, 'prev' => has_prev($prev), 'next' => has_next($next), 'type' => $var, @@ -2523,7 +2523,7 @@ get('/:year/:month/:name', function ($year, $month, $name) { } if (config('blog.enable') === 'true') { - $blog = ' Blog » '; + $blog = ' Blog » '; } else { $blog = ''; } @@ -2535,7 +2535,7 @@ get('/:year/:month/:name', function ($year, $month, $name) { 'p' => $current, 'author' => $author, 'bodyclass' => 'inpost', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . $current->category . ' » ' . $current->title, + 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . '' . $current->categoryb . '' . ' » ' . $current->title, 'prev' => has_prev($prev), 'next' => has_next($next), 'type' => $var, @@ -2809,4 +2809,4 @@ get('.*', function () { }); // Serve the blog -dispatch(); \ No newline at end of file +dispatch(); diff --git a/system/includes/functions.php b/system/includes/functions.php index 9411b8d..d1bde00 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -266,9 +266,11 @@ function get_posts($posts, $page = 1, $perpage = 0) if($str[count($str) - 3] == 'uncategorized') { $category = default_category(); $post->category = '' . $category->title . ''; + $post->categoryb = '' . $category->title . ''; } else { $category = get_category_info($str[count($str) - 3]); $post->category = '' . $category[0]->title . ''; + $post->categoryb = '' . $category[0]->title . ''; } $type = $str[count($str) - 2]; diff --git a/themes/blog/css/styles.css b/themes/blog/css/styles.css index 1fe3477..e759aba 100644 --- a/themes/blog/css/styles.css +++ b/themes/blog/css/styles.css @@ -142,6 +142,17 @@ pre { margin:1em 0; } +.tags { + margin-right:5px; +} + +.tags a { + background-color: #f9f2f4; + border-radius: 4px; + color: #c7254e; + padding: 2px 4px; +} + /*------------------------- Table --------------------------*/ diff --git a/themes/blog/post.html.php b/themes/blog/post.html.php index abaa2e4..2c654ce 100644 --- a/themes/blog/post.html.php +++ b/themes/blog/post.html.php @@ -43,7 +43,7 @@ body; ?>