优化移动端阅读体验、优化瞬间样式、修复导航target属性渲染错误
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user