Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat: 🎨 add markup for page
  • Loading branch information
spences10 committed Sep 16, 2021
1 parent 3511e29 commit e63ae57
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/routes/posts/[slug].svelte
Expand Up @@ -15,11 +15,20 @@

<script>
export let post
let { html, date, title, tags, published, readingTime } = post
</script>

<div class="flex flex-col flex-grow">
<h1 class="font-bold mb-5 text-5xl">Posts</h1>
<div class="">
<pre>{JSON.stringify(post, null, 2)}</pre>
<h1>{title}</h1>
<p>{date}</p>
<pre>{JSON.stringify(tags, null, 2)}</pre>
<p>{published}</p>
<pre>{JSON.stringify(readingTime, null, 2)}</pre>
<article class="prose">
{@html html}
</article>
</div>
</div>

0 comments on commit e63ae57

Please sign in to comment.