feat: 脚本部署

This commit is contained in:
2026-07-06 23:58:49 +08:00
parent 59664d139d
commit 3c9ef565b3
4 changed files with 11 additions and 17 deletions

View File

@@ -2,6 +2,7 @@
import Layout from "@/layouts/Layout.astro";
import { http } from "@/lib/request";
import {formatDatetime} from "@/lib/format.ts";
interface Post {
title: string;
@@ -28,7 +29,7 @@ const {list} = await http.get<ApiPageResponse<Post>>("post");
<div class="post-content">
<h2>{post.title}</h2>
<p class="summary">{post.summary}</p>
<time>{post.published_at}</time>
<div>{formatDatetime(post.published_at,'YYYY 年 MM 月 DD 日')}</div>
</div>
</a>
))