This commit is contained in:
nineya 2023-08-05 15:48:15 +08:00
commit 80cc5800dd
2 changed files with 8 additions and 10 deletions

View File

@ -14,7 +14,7 @@
<a th:if="${#lists.isEmpty(menuItem.children)}" <a th:if="${#lists.isEmpty(menuItem.children)}"
class="item" class="item"
th:href="${menuItem.status.href}" th:href="${menuItem.status.href}"
th:target="${menuItem.spec.target}" th:target="${menuItem.spec.target?.value}"
th:title="${menuItem.status.displayName}"> th:title="${menuItem.status.displayName}">
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}" <i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}"
th:class="${'m-icon ' + #annotations.getOrDefault(menuItem, 'icon', '')}"></i> th:class="${'m-icon ' + #annotations.getOrDefault(menuItem, 'icon', '')}"></i>
@ -24,7 +24,7 @@
<div class="item-dropdown-link"> <div class="item-dropdown-link">
<a class="item" <a class="item"
th:href="${#strings.defaultString(menuItem.status.href, 'javascript:')}" th:href="${#strings.defaultString(menuItem.status.href, 'javascript:')}"
th:target="${menuItem.spec.target}" th:target="${menuItem.spec.target?.value}"
th:title="${menuItem.status.displayName}"> th:title="${menuItem.status.displayName}">
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}" <i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}"
th:class="${'m-icon ' + #annotations.getOrDefault(menuItem, 'icon', '')}"></i> th:class="${'m-icon ' + #annotations.getOrDefault(menuItem, 'icon', '')}"></i>
@ -36,7 +36,7 @@
<li th:each="dropdown : ${menuItem.children}" class="item-sub-li"> <li th:each="dropdown : ${menuItem.children}" class="item-sub-li">
<a class="item" <a class="item"
th:href="${#strings.defaultString(dropdown.status.href, 'javascript:')}" th:href="${#strings.defaultString(dropdown.status.href, 'javascript:')}"
th:target="${dropdown.spec.target}" th:target="${dropdown.spec.target?.value}"
th:title="${dropdown.status.displayName}"> th:title="${dropdown.status.displayName}">
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdown, 'icon', ''))}" <i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdown, 'icon', ''))}"
th:class="${'m-icon ' + #annotations.getOrDefault(dropdown, 'icon', '')}"></i> th:class="${'m-icon ' + #annotations.getOrDefault(dropdown, 'icon', '')}"></i>
@ -46,7 +46,7 @@
<li th:each="dropdownChild : ${dropdown.children}"> <li th:each="dropdownChild : ${dropdown.children}">
<a class="item" <a class="item"
th:href="${dropdownChild.status.href}" th:href="${dropdownChild.status.href}"
th:target="${dropdownChild.spec.target}" th:target="${dropdownChild.spec.target?.value}"
th:title="${dropdownChild.status.displayName}"> th:title="${dropdownChild.status.displayName}">
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdownChild, 'icon', ''))}" <i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdownChild, 'icon', ''))}"
th:class="${'m-icon ' + #annotations.getOrDefault(dropdownChild, 'icon', '')}"></i> th:class="${'m-icon ' + #annotations.getOrDefault(dropdownChild, 'icon', '')}"></i>
@ -68,7 +68,7 @@
<div class="navbar-slideout-author"> <div class="navbar-slideout-author">
<img width="50" height="50" th:src="${contributor.avatar}" th:alt="${contributor.displayName}" class="avatar"/> <img width="50" height="50" th:src="${contributor.avatar}" th:alt="${contributor.displayName}" class="avatar"/>
<div class="info"> <div class="info">
<a class="link" target="_blank" rel="noopener noreferrer nofollow" th:text="${contributor.displayName}"></a> <p class="link" th:text="${contributor.displayName}"></p>
<p class="motto" th:text="${contributor.bio}"></p> <p class="motto" th:text="${contributor.bio}"></p>
</div> </div>
</div> </div>

View File

@ -9,9 +9,7 @@
</div> </div>
<div class="card-content main"> <div class="card-content main">
<h1 class="title" th:text="'友情链接 - ' + ${contributor.displayName} + '的小伙伴们'"></h1> <h1 class="title" th:text="'友情链接 - ' + ${contributor.displayName} + '的小伙伴们'"></h1>
<div class="main-content" <div class="main-content">
th:data-id="${theme.config.page_config.link_comment_id}"
data-target="SinglePage">
<th:block th:each="group : ${groups}"> <th:block th:each="group : ${groups}">
<div th:if="${!#lists.isEmpty(group.links)}" class="links"> <div th:if="${!#lists.isEmpty(group.links)}" class="links">
<h3 class="link-title" th:text="${#strings.defaultString(group.spec.displayName, '小伙伴们')}" th:id="'toc' + ${groupStat.index}"></h3> <h3 class="link-title" th:text="${#strings.defaultString(group.spec.displayName, '小伙伴们')}" th:id="'toc' + ${groupStat.index}"></h3>
@ -48,9 +46,9 @@
</div> </div>
</div> </div>
</div> </div>
<div class="card card-content" id="comment-wrapper" th:if="${pluginFinder.available('PluginCommentWidget') && !#strings.isEmpty(theme.config.page_config.link_comment_id)}"> <div class="card card-content" id="comment-wrapper" th:if="${pluginFinder.available('PluginCommentWidget') && enableComment}">
<h3 class="comment-title">评论</h3> <h3 class="comment-title">评论</h3>
<div id="comment"></div> <div class="widget-comment" th:data-id="${theme.config.page_config.link_comment_id}" data-target="SinglePage"></div>
</div> </div>
</th:block> </th:block>
</th:block> </th:block>