25 lines
1.3 KiB
HTML
Raw Normal View History

2023-03-25 12:46:08 +08:00
<th:block xmlns:th="https://www.thymeleaf.org"
2023-03-25 02:04:42 +08:00
th:with="donate=${!#strings.isEmpty(theme.config.post.donate_alipay) || !#strings.isEmpty(theme.config.post.donate_wechat)}">
<div th:if="${donate || type == 'Post'}" class="admire">
2023-03-21 10:49:35 +08:00
<div class="admire-content">
2023-03-25 02:04:42 +08:00
<button th:if="${donate}" class="donate">
<i class="fa fa-credit-card"></i>
<span>打赏</span>
<div class="donate-list">
<ol>
2023-03-25 16:28:00 +08:00
<li th:if="${!#strings.isEmpty(theme.config.post.donate_alipay)}"><img
2023-03-25 02:04:42 +08:00
th:src="${theme.config.post.donate_alipay}" alt="支付宝捐赠"></li>
2023-03-25 16:28:00 +08:00
<li th:if="${!#strings.isEmpty(theme.config.post.donate_wechat)}"><img
2023-03-25 02:04:42 +08:00
th:src="${theme.config.post.donate_wechat}" alt="微信捐赠"></li>
</ol>
</div>
</button>
2023-03-29 16:34:55 +08:00
<button th:if="${type == 'Post'}" class="agree like" th:data-id="${post.metadata.name}"
2023-05-30 17:09:36 +08:00
th:data-likes="${post.stats.upvote}">
2023-03-25 02:04:42 +08:00
<i class="fa fa-thumbs-o-up"></i>
<span><span th:text="${post.stats.upvote}"></span></span>
</button>
2023-03-21 10:49:35 +08:00
</div>
<span>如果觉得文章对你有用,请随意赞赏</span>
</div>
2023-03-25 12:46:08 +08:00
</th:block>