修复目录 tag 不能展示,修复 toc 移除问题
This commit is contained in:
parent
d0365e9005
commit
6d8df08d1c
|
@ -9786,7 +9786,7 @@ strong {
|
|||
#article-container.post-content h2,
|
||||
#article-container.post-content h3,
|
||||
#article-container.post-content h4 {
|
||||
display: flex;
|
||||
/*display: flex;*/
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-direction: row-reverse;
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
|
||||
<hr>
|
||||
|
||||
<th:block th:replace="modules/widgets/aside/stat :: statistics"></th:block>
|
||||
<th:block th:replace="modules/widgets/aside/stat :: stat"></th:block>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
var headers = $(content).children(headerEl);
|
||||
|
||||
// 没有 toc 目录,则直接移除
|
||||
if (headers.empty()) {
|
||||
if (headers.length === 0) {
|
||||
document.getElementById("card-toc").remove();
|
||||
} else {
|
||||
headers.each(function () {
|
||||
|
|
|
@ -15,9 +15,10 @@
|
|||
<div class="meta-firstline">
|
||||
<!-- 这里要跳转到版权页 -->
|
||||
<a class="post-meta-original" th:href="@{/cc}" title="该文章为原创文章,注意版权协议">原创</a>
|
||||
<span class="post-meta-categories" th:if="${not #lists.isEmpty(post.categories)}">
|
||||
<span class="post-meta-categories"
|
||||
th:each="category : ${post.categories}"
|
||||
th:if="${not #lists.isEmpty(post.categories)}">
|
||||
<a class="post-meta-categories"
|
||||
th:each="category : ${post.categories}"
|
||||
th:href="${category.status.permalink}"
|
||||
th:text="${category.spec.displayName}"
|
||||
th:title="${category.spec.displayName}">
|
||||
|
@ -238,26 +239,15 @@
|
|||
<!-- 目录 -->
|
||||
<div th:replace="modules/widgets/aside/toc :: toc"></div>
|
||||
|
||||
<!--<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="card-widget heo-right-widget" id="card-wechat" onclick='window.open("/wechat/")'>-->
|
||||
<!-- <div id="flip-wrapper">-->
|
||||
<!-- <div id="flip-content">-->
|
||||
<!-- <div class="face"></div>-->
|
||||
<!-- <div class="back face"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!--</div>-->
|
||||
|
||||
<!-- 微信卡片 -->
|
||||
<div class="card-widget heo-right-widget" id="card-wechat" onclick='window.open("/wechat/")'>
|
||||
<div id="flip-wrapper">
|
||||
<div id="flip-content">
|
||||
<div class="face"></div>
|
||||
<div class="back face"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 近期文章 -->
|
||||
<div th:replace="modules/widgets/aside/recent-posts :: recent-posts"></div>
|
||||
</div>
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
|
||||
<hr>
|
||||
|
||||
<th:block th:replace="modules/widgets/aside/stat :: statistics"></th:block>
|
||||
<th:block th:replace="modules/widgets/aside/stat :: stat"></th:block>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue