From 9d172c6d1d3a79d2cfa1c4c1aaa8d5884228664b Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Mon, 11 Apr 2022 15:26:12 +0200 Subject: [PATCH] better metadata --- src/lib/layouts/post.svelte | 16 ++++++++++------ src/routes/index.svelte | 10 +++++++--- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/lib/layouts/post.svelte b/src/lib/layouts/post.svelte index 04a9d36..ed425fe 100644 --- a/src/lib/layouts/post.svelte +++ b/src/lib/layouts/post.svelte @@ -24,12 +24,16 @@ - - - - - - + {#if bigThumbnail} + + + + {/if} + {#if thumbnail} + + + + {/if}
diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 8a96afc..18c378d 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -1,5 +1,5 @@ @@ -57,7 +59,9 @@
I recently started my own blog.
- You can checkout “{posts[0].title}” and other recent blog posts:
+ {#if selectedPost} + You can checkout “{selectedPost.title}” and other recent blog posts:
+ {/if}