mirror of
https://git.beihong.wang/wangbeihong/blog-source.git
synced 2026-04-23 20:23:03 +08:00
26 lines
613 B
PHP
Executable File
26 lines
613 B
PHP
Executable File
<?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; ?>
|