Post Changes, server rename + rows on projects layout
This commit is contained in:
parent
67276e54c1
commit
630841db19
|
@ -48,13 +48,13 @@
|
||||||
<a
|
<a
|
||||||
{href}
|
{href}
|
||||||
{target}
|
{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"
|
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>
|
<header>
|
||||||
<img
|
<img
|
||||||
src="/images/blog/{post.slug}/{post.image}"
|
src={`/images/${type}/${post.slug}/${post.image}`}
|
||||||
class="bg-black/200 w-full aspect-[3/2]"
|
class="bg-black/200 w-full aspect-[3/2]"
|
||||||
alt="Post preview"
|
alt="Post preview"
|
||||||
/>
|
/>
|
||||||
|
@ -99,6 +99,3 @@
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<style lang="postcss">
|
|
||||||
</style>
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { listBlogPosts } from '$content/blog';
|
import { listPosts } from '$content/blog';
|
||||||
|
|
||||||
export const load = async () => {
|
export const load = async () => {
|
||||||
return {
|
return {
|
||||||
posts: listBlogPosts(),
|
posts: listPosts()
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue