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} blog