sanity stuff
This commit is contained in:
		
							parent
							
								
									55f4db0054
								
							
						
					
					
						commit
						944d35ff6a
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user