导航栏左侧控制

This commit is contained in:
liuzhihang 2022-10-14 09:02:38 +08:00
parent f067d52759
commit a65d31722e
1 changed files with 25 additions and 25 deletions

View File

@ -2,10 +2,10 @@
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!-- 导航栏左侧 -->
<div id="blog_name" th:fragment="nav-left"
th:if="${not #strings.isEmpty(theme.config.nav.left_menu)}"
th:with="leftMenu = ${theme.config.nav.left_menu}">
<div id="blog_name" th:fragment="nav-left">
<th:block th:if="${not #strings.isEmpty(theme.config.nav.left_menu)}"
th:with="leftMenu = ${theme.config.nav.left_menu}">
<!-- 菜单栏左侧按钮,没有配置时,则不展示-->
<div class="back-home-button" tabindex="-1"
th:if="${not #strings.isEmpty(leftMenu)} and ${not #lists.isEmpty(menuFinder.getByName(leftMenu))}">
@ -31,7 +31,7 @@
</div>
</div>
</div>
</th:block>
<!-- 返回主页 -->
<!-- 这里可以指定使用什么作为图标,默认使用站点名称 -->
<a href="/" id="site-name"