Post Changes, server rename + rows on projects layout
This commit is contained in:
parent
67276e54c1
commit
630841db19
|
@ -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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { listBlogPosts } from '$content/blog';
|
||||
import { listPosts } from '$content/blog';
|
||||
|
||||
export const load = async () => {
|
||||
return {
|
||||
posts: listBlogPosts(),
|
||||
posts: listPosts()
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue