- 修复 /categories、/tags 因变量为 List 误用 .items 导致的 500 - 新增 layout.html 布局契约,消除插件页面 fallback 警告 - 适配 plugin-moments / plugin-photos / plugin-links(含友链申请表单与 RSS 订阅页) - 适配 halo-weread-plugin(书架页)、留言板单页模板 - 适配 plugin-extra-api 的代码高亮与暗色样式 - 修复暗黑模式评论区不可见(补充 color-scheme 与兜底样式) - 更新元数据:作者暖心向阳335、版本 0.1.0、requires >=2.26.0
26 lines
837 B
HTML
26 lines
837 B
HTML
<!-- 文章列表卡片 -->
|
|
<article
|
|
class="post"
|
|
th:fragment="post-card(post)"
|
|
th:classappend="${not #strings.isEmpty(post.spec.cover)} ? 'post-with-thumb'"
|
|
>
|
|
<div class="post-thumb" th:if="${not #strings.isEmpty(post.spec.cover)}">
|
|
<a th:href="@{${post.status.permalink}}">
|
|
<img th:src="${post.spec.cover}" th:alt="${post.spec.title}" loading="lazy" />
|
|
</a>
|
|
</div>
|
|
<div class="post-content">
|
|
<h2 class="post-title">
|
|
<a th:href="@{${post.status.permalink}}" th:text="${post.spec.title}"
|
|
>Post title</a
|
|
>
|
|
</h2>
|
|
<p
|
|
class="post-excerpt"
|
|
th:if="${not #strings.isEmpty(post.status.excerpt)}"
|
|
th:text="${post.status.excerpt}"
|
|
></p>
|
|
<th:block th:replace="~{modules/post-meta :: post-meta(post=${post}, dateClass='post-date')}"></th:block>
|
|
</div>
|
|
</article>
|