Skip to content

Commit

Permalink
refactor: 减少多余的 dom 层级
Browse files Browse the repository at this point in the history
  • Loading branch information
HowieHz committed Dec 7, 2024
1 parent 8f3117b commit 3ef84b0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,9 @@ <h1 class="posttitle" itemprop="name headline">
<halo:comment group="content.halo.run" kind="Post" th:name="${post.metadata?.name}" />
</th:block>
</article>
<div
th:insert="~{fragments/footer-nav :: footerNav}"
th:if="${theme.config?.post_styles?.is_show_footer_nav}"
></div>

<th:block th:if="${theme.config?.post_styles?.is_show_footer_nav}">
<div th:replace="~{fragments/footer-nav :: footerNav}"></div>
</th:block>
<!-- clipboard -->
<script th:src="@{/assets/lib/clipboard/clipboard.min.js}"></script>
<script type="text/javascript" th:inline="javascript">
Expand Down

0 comments on commit 3ef84b0

Please sign in to comment.