feat: 脚本部署
This commit is contained in:
@@ -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>
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user