Skip to content

Commit

Permalink
✨ 优化分类目录下的分类细分展示 #436
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Aug 21, 2024
1 parent b34c923 commit c7e567a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,7 @@ function get_post_category_link_exec($all = true, $class = '', $icon = '', $cid
$out = mb_substr($out, 0, mb_strlen($out) - 1);
return $out;
} else {
if (!is_category()) {
$cate = $cats[0];
} else {
$cate = get_category($cat);
}
$cate = $cats[0];
return '<a ' . pk_link_target(false) . ' class="' . $class . '" href="' . get_category_link($cate) . '"><i class="fa-regular fa-folder-open"></i> ' . $icon . $cate->name . '</a>';
}
}
Expand Down

0 comments on commit c7e567a

Please sign in to comment.