调整 tocbot 的位置
This commit is contained in:
parent
65dfdc8025
commit
ec2643e949
|
@ -4,17 +4,20 @@
|
|||
|
||||
<th:block th:fragment="toc">
|
||||
<div class="card-widget" id="card-toc">
|
||||
<div class="item-headline"><i class="fas fa-bars"></i><span>文章目录</span></div>
|
||||
<div class="toc-content">
|
||||
<ol class="toc">
|
||||
<li class="toc-item toc-level-2">
|
||||
<a class="toc-link" href="#"><span class="toc-text">通过转换为灰度来进行去色</span></a>
|
||||
</li>
|
||||
</ol>
|
||||
<div class="item-headline">
|
||||
<i class="fas fa-bars"></i>
|
||||
<span>文章目录</span>
|
||||
</div>
|
||||
<!-- 目录容器 -->
|
||||
<div class="toc-content"></div>
|
||||
</div>
|
||||
|
||||
<!-- tocbot 用来生成目录 -->
|
||||
<div>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.11.1/tocbot.min.js"></script>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.11.1/tocbot.css" rel="stylesheet">
|
||||
</div>
|
||||
<script>
|
||||
|
||||
// 给标签添加 id
|
||||
var headerEl = 'h1,h2,h3,h4,h5,h6', // headers
|
||||
content = '.post-content', // 文章容器
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"></script>
|
||||
<script crossorigin="anonymous" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ="
|
||||
script src="https://code.jquery.com/jquery-3.6.1.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.11.1/tocbot.min.js"></script>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.11.1/tocbot.css" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" th:href="@{/assets/zhheo/zhheoblog.css}">
|
||||
<!-- fontawesome-pro https://github.com/duyplus/fontawesome-pro -->
|
||||
|
|
Loading…
Reference in New Issue