use components on blog

This commit is contained in:
2023-01-01 10:22:26 +02:00
parent 31df1859cb
commit fae1d2ce13
15 changed files with 135 additions and 111 deletions

View File

@@ -0,0 +1,6 @@
<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>