Blog posts working now

This commit is contained in:
2023-01-31 20:04:22 +01:00
parent eafc8b7082
commit b3153ae06a
5 changed files with 51 additions and 61 deletions

View File

@ -0,0 +1,18 @@
<script lang="ts">
import ArticleFooter from '../../../components/blog/ArticleFooter.svelte'
import type { PageData } from './$types'
import { contentClass } from './blog.css'
export let data: PageData
</script>
<svelte:head>
<title>{data.title}</title>
</svelte:head>
<h1>{data.title}</h1>
<div class="content {contentClass}">
{@html data.body}
</div>
<ArticleFooter post={data} />