first commit
This commit is contained in:
26
usr/themes/HarmonyHues/components/widgets/widget-articletoc.php
Executable file
26
usr/themes/HarmonyHues/components/widgets/widget-articletoc.php
Executable 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; ?>
|
||||
Reference in New Issue
Block a user