refactor: migrate route from post/... to blog/...

This commit is contained in:
草师傅 2025-06-29 22:08:06 +08:00
parent 03ce3caefd
commit 414cd7d3d7
12 changed files with 18 additions and 9 deletions

View file

@ -28,7 +28,7 @@ const { posts } = Astro.props;
{posts.map((post: any) =>
<p>
<span class="list-date">{new Date(post.data.pubDate).toISOString().split('T')[0]}</span>
<a href={`/post/${post.slug}`}>{post.data.title}</a>
<a href={`/blog/${post.slug}`}>{post.data.title}</a>
</p>
)}
</ul>