22 lines
432 B
Svelte
22 lines
432 B
Svelte
<script lang="ts">
|
|
export let post: any;
|
|
export let isPost: boolean = false;
|
|
</script>
|
|
|
|
{#if !isPost}
|
|
{#if post.feature_image}
|
|
<img
|
|
src={post.feature_image}
|
|
alt="{post.title} image"
|
|
class="rounded"
|
|
/>
|
|
{/if}
|
|
<a
|
|
href="/blog/{post.slug}"
|
|
class="text-text no-underline hover:underline"
|
|
><span class="text-xl font-bold">{post.title}</span></a
|
|
>
|
|
{:else}
|
|
<span class="text-xl font-bold">{post.title}</span>
|
|
{/if}
|