sanity stuff

This commit is contained in:
christian 2024-04-29 07:20:57 +02:00
parent 55f4db0054
commit 944d35ff6a
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ export async function load({ params }) {
title,
slug,
_createdAt,
coverImage {
mainImage {
...,
asset->
},

View File

@ -6,7 +6,7 @@
{#each data.posts as post}
<div class="border-2 border-slate-500 rounded my-2 text-l p-4">
<img class="max-h-32 mx-auto" src={post.coverImage.asset.url} alt={post.title}>
<img class="max-h-32 mx-auto" src={post.mainImage.asset.url} alt={post.title}>
<h2 class="text-xl">{post.title}</h2>
{#each post.body as block}
<PortableText