website/src/lib/BlogCard/ReadMore.svelte
2023-01-01 10:22:26 +02:00

6 lines
169 B
Svelte

<script lang="ts">
export let post: any;
</script>
<span>{post.plaintext.split(" ").slice(0, 20).join(" ") + "..."}</span>
<a href="/blog/{post.slug}">Read more...</a>