15 lines
411 B
Svelte
15 lines
411 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}
|
|
|