Skip to content

Commit

Permalink
friends: 适配friends插件1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Asteri5m authored Dec 22, 2024
1 parent 1801cef commit 7a644de
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions templates/friends.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,34 @@
<div class="card-tab">
<div>[[${#strings.replace(title, ' - ' + site.title, '')}]]</div>
</div>
<nav class="level" th:with="stats = ${friendFinder.statistical()}">
<nav class="level">
<div class="level-item">
<div>
<p class="heading">订阅数</p>
<p class="value" th:title="${stats.friendsNum}" th:text="${stats.friendsNum}"></p>
<p class="heading">订阅文章数</p>
<p class="value" th:title="${friends.total}" th:text="${friends.total}"></p>
</div>
</div>
<div class="level-item">
<div>
<p class="heading">订阅成功数</p>
<p class="value" th:title="${stats.activeNum}" th:text="${stats.activeNum}"></p>
<p class="heading">总页数</p>
<p class="value" th:title="${friends.totalPages}" th:text="${friends.totalPages}"></p>
</div>
</div>
<div class="level-item">
<div>
<p class="heading">订阅文章数</p>
<p class="value" th:title="${stats.articleNum}" th:text="${stats.articleNum}"></p>
<p class="heading">当前页数</p>
<p class="value" th:title="${friends.page}" th:text="${friends.page}"></p>
</div>
</div>
</nav>
</div>
<div class="widget card friends" th:each="friend : ${friends.items}" th:with="spec = ${friend.spec}">
<div class="card-content main">
<h2 class="title"><a th:href="${spec.link}" target="_blank" th:text="${spec.title}"></a></h2>
<h2 class="title"><a th:href="${spec.postLink}" target="_blank" th:text="${spec.title}"></a></h2>
<div class="main-content not-toc" th:text="${spec.description}"></div>
<hr/>
<div class="meta">
<a class="has-link-grey" th:href="${spec.url}" target="_blank">
<a class="has-link-grey" th:href="${spec.authorUrl}" target="_blank">
<img th:if="${!#strings.isEmpty(spec.logo)}" th:src="${spec.logo}" alt="avatar">
<span th:text="${spec.author}"></span>
</a>
Expand Down

0 comments on commit 7a644de

Please sign in to comment.