This commit is contained in:
root
2026-03-04 00:23:03 +08:00
commit 6136d791f2
611 changed files with 65539 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
/**
* 文章目录
*
* @author 星语社长
* @link https://biibii.cn
* @update 2024-7-6 18:00:04
*/
if ( ! defined('__TYPECHO_ROOT_DIR__')) {
exit;
}
?>
<?php $tocData = getCatalog();
if ($this->is('post') && $tocData): ?>
<!-- 文章目录 -->
<div class="hh-widget widget-toc-main mt-3 p-3">
<div class="widget-title mb-2">
<div class="widget-title-top-bg" style="background:var(--atoc-h-bg);"></div>
<i class="iconfont icon-mulu mr-1"></i>文章目录
</div>
<div class="atoc-content ml-2">
<?php echo $tocData; ?>
</div>
</div>
<?php endif; ?>