Update astro to v4

This commit is contained in:
tobias
2024-05-19 06:53:14 +02:00
parent 37c0cd98b7
commit 8ef6ee2b2c
5 changed files with 1848 additions and 1606 deletions

View File

@ -27,7 +27,7 @@ const posts = await getPosts();
posts.map((post) => (
<a href={`/posts/${post.id}/`}>
<article class="text-gray bg-gray-light px-5 py-3 rounded-md shadow-md w-64 text-center hover:-translate-y-1 transition-transform">
<h3 class="font-bold text-lg" transition:name=`title-${post.id}`>{post.title}</h3>
<h3 class="font-bold text-lg">{post.title}</h3>
{post.publishedDate && (
<p>
{new Date(post.publishedDate).toLocaleDateString("de-DE")}

View File

@ -21,7 +21,7 @@ const post = id && (await getPost(id));
<Layout title={`Paystro | ${post.title!}`}>
<div class="space-y-3 my-3">
<a href="/">BACK</a>
<h1 class="font-bold text-5xl" transition:name=`title-${post.id}`>{post.title}</h1>
<h1 class="font-bold text-5xl">{post.title}</h1>
{post.content && <Content content={post.content} />}
</div>
</Layout>