edbf78f236
- Halo Plugin 后端(Java/Gradle),含 DarkModePlugin 主类和测试 - Vue 3 + TypeScript 前端 UI,包含主题切换组件和设置页面 - 暗色模式 CSS 变量和覆盖样式(布局/编辑器/表单/滚动条等) - 设计文档和调查文档 - Halo 插件/主题开发 Agent Skills Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
1003 B
HTML
27 lines
1003 B
HTML
<!doctype html>
|
|
<html
|
|
xmlns:th="https://www.thymeleaf.org"
|
|
th:replace="~{layout :: html(head = ~{::head}, content = ~{::content})}"
|
|
>
|
|
<th:block th:fragment="head">
|
|
<title th:text="|${author.spec.displayName} - ${site.title}|"></title>
|
|
</th:block>
|
|
<th:block th:fragment="content">
|
|
<h1 th:text="${author.spec.displayName}"></h1>
|
|
<p th:if="${not #strings.isEmpty(author.spec.bio)}" th:text="${author.spec.bio}"></p>
|
|
|
|
<ul>
|
|
<li th:each="post : ${posts.items}">
|
|
<a th:href="@{${post.status.permalink}}" th:text="${post.spec.title}"></a>
|
|
<time th:text="${#temporals.format(post.spec.publishTime, 'yyyy-MM-dd')}"></time>
|
|
</li>
|
|
</ul>
|
|
|
|
<nav th:if="${posts.hasPrevious() || posts.hasNext()}">
|
|
<a th:if="${posts.hasPrevious()}" th:href="@{${posts.prevUrl}}">Previous</a>
|
|
<span th:text="|${posts.page} / ${posts.totalPages}|"></span>
|
|
<a th:if="${posts.hasNext()}" th:href="@{${posts.nextUrl}}">Next</a>
|
|
</nav>
|
|
</th:block>
|
|
</html>
|