diff --git a/toc.php b/toc.php index 9f975a6..70164b1 100644 --- a/toc.php +++ b/toc.php @@ -12,52 +12,38 @@ function generate_toc($content) {

文章目录

-
-
'; + return $has_toc? $toc : ''; } ?> \ No newline at end of file