Post Changes, server rename + rows on projects layout

This commit is contained in:
matthieu42morin 2024-04-08 23:59:02 +02:00
parent 67276e54c1
commit 630841db19
2 changed files with 5 additions and 8 deletions

View File

@ -48,13 +48,13 @@
<a
{href}
{target}
data-sveltekit-preload-data="hover"
class="card bg-gradient-to-br variant-glass-primary card-hover overflow-hidden flex flex-col space-y-4"
>
<div class="flex flex-col justify-between auto-rows-auto w-full h-full text-token">
<!-- Blog in long cols, projects in wide rows -->
<div class="flex {type === 'blog' ? 'flex-col' : 'flex-row'} justify-between w-full h-full">
<header>
<img
src="/images/blog/{post.slug}/{post.image}"
src={`/images/${type}/${post.slug}/${post.image}`}
class="bg-black/200 w-full aspect-[3/2]"
alt="Post preview"
/>
@ -99,6 +99,3 @@
</section>
</div>
</a>
<style lang="postcss">
</style>

View File

@ -1,7 +1,7 @@
import { listBlogPosts } from '$content/blog';
import { listPosts } from '$content/blog';
export const load = async () => {
return {
posts: listBlogPosts(),
posts: listPosts()
};
};