Merge branch 'sanity-cms' of https://gitea.rannes.dev/christian/my-portfolio into sanity-cms
This commit is contained in:
commit
3b46a33b5d
@ -5,7 +5,7 @@ export async function load({ params }) {
|
||||
title,
|
||||
slug,
|
||||
_createdAt,
|
||||
coverImage {
|
||||
mainImage {
|
||||
...,
|
||||
asset->
|
||||
},
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user