优化移动端阅读体验、优化瞬间样式、修复导航target属性渲染错误

This commit is contained in:
nxxy335top
2026-05-22 14:56:55 +08:00
parent f48db60690
commit 9d0bfcfb4f
24 changed files with 246 additions and 276 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ import ThemeSwitcher from "./ThemeSwitcher.astro";
class="wi-navbar__logo"
loading="eager"
decoding="async"
onerror="this.style.display='none';this.nextElementSibling&&this.nextElementSibling.classList.add('wi-navbar__title')"
/>
<span
th:if="${#strings.isEmpty(theme.config?.basic?.logo)}"
@@ -30,7 +31,7 @@ import ThemeSwitcher from "./ThemeSwitcher.astro";
<a
th:each="menuItem : ${menu.menuItems}"
th:href="@{${menuItem.status.href}}"
th:target="${menuItem.spec.target}"
th:target="${menuItem.spec?.target?.value == '_blank'} ? '_blank' : '_self'"
th:text="${menuItem.status.displayName}"
class="wi-navbar__link"
th:data-href="${menuItem.status.href}"