feat: 插件适配页面与系统完善(v0.1.0)
- 修复 /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
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<!-- 文章元信息(时间 / 分类 / 浏览量),供列表卡片与详情页复用 -->
|
||||
<div class="post-meta" th:fragment="post-meta(post, dateClass)">
|
||||
<time
|
||||
th:if="${post.spec.publishTime != null}"
|
||||
th:class="${dateClass}"
|
||||
th:datetime="${post.spec.publishTime}"
|
||||
th:text="${#temporals.format(post.spec.publishTime, 'yyyy-MM-dd')}"
|
||||
data-relative-time
|
||||
></time>
|
||||
<th:block th:if="${not #lists.isEmpty(post.categories)}">
|
||||
<span class="post-meta-sep">·</span>
|
||||
<span class="post-category">
|
||||
<a
|
||||
th:each="cat : ${post.categories}"
|
||||
th:href="@{${cat.status.permalink}}"
|
||||
th:text="${cat.spec.displayName}"
|
||||
></a>
|
||||
</span>
|
||||
</th:block>
|
||||
<th:block th:if="${post.stats != null and post.stats.visit != null and post.stats.visit > 0}">
|
||||
<span class="post-meta-sep">·</span>
|
||||
<span class="post-views" th:text="#{post.views(${post.stats.visit})}"
|
||||
>1 views</span
|
||||
>
|
||||
</th:block>
|
||||
</div>
|
||||
Reference in New Issue
Block a user