fix(logo): 修复指定logo时500错误问题

This commit is contained in:
nineya 2023-03-28 20:52:18 +08:00
parent bb9dbf06a6
commit 4266eecafa
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<th:block th:if="${#strings.isEmpty(site.logo)}" th:text="${site.title}"/> <th:block th:if="${#strings.isEmpty(site.logo)}" th:text="${site.title}"/>
<th:block th:unless="${#strings.isEmpty(site.logo)}"> <th:block th:unless="${#strings.isEmpty(site.logo)}">
<img class="logo-img" th:src="${site.logo}" th:alt="${site.title}" height="28"> <img class="logo-img" th:src="${site.logo}" th:alt="${site.title}" height="28">
<img class="logo-img-dark" th:src="${#strings.defaultString(theme.config.basic_info.night_logo, ${site.logo})}" th:alt="${site.title}" height="28"> <img class="logo-img-dark" th:src="${#strings.defaultString(theme.config.basic_info.night_logo, site.logo)}" th:alt="${site.title}" height="28">
</th:block> </th:block>
</a> </a>
</li> </li>

View File

@ -6,7 +6,7 @@
<th:block th:if="${#strings.isEmpty(site.logo)}" th:text="${site.title}"/> <th:block th:if="${#strings.isEmpty(site.logo)}" th:text="${site.title}"/>
<th:block th:unless="${#strings.isEmpty(site.logo)}"> <th:block th:unless="${#strings.isEmpty(site.logo)}">
<img class="logo-img" th:src="${site.logo}" th:alt="${site.title}" height="28"> <img class="logo-img" th:src="${site.logo}" th:alt="${site.title}" height="28">
<img class="logo-img-dark" th:src="${#strings.defaultString(theme.config.basic_info.night_logo, ${site.logo})}" th:alt="${site.title}" height="28"> <img class="logo-img-dark" th:src="${#strings.defaultString(theme.config.basic_info.night_logo, site.logo)}" th:alt="${site.title}" height="28">
</th:block> </th:block>
</a> </a>
<nav class="navbar-nav active-animate"> <nav class="navbar-nav active-animate">