2020-09-23 15:37:12 +02:00
|
|
|
<script context="module">
|
|
|
|
export async function preload({ params }) {
|
2021-02-08 10:56:38 +01:00
|
|
|
return this.fetch(`/api/posts/${params.slug}.json`).then((res) =>
|
|
|
|
res.json()
|
|
|
|
)
|
2020-09-23 15:37:12 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import SimplePage from '../../components/SimplePage.svelte'
|
|
|
|
import WPAdapter from '../../components/WPAdapter.svelte'
|
|
|
|
import PostAttributes from '../../components/PostAttributes.svelte'
|
|
|
|
|
2020-09-28 14:40:04 +02:00
|
|
|
export let data
|
2020-09-23 15:37:12 +02:00
|
|
|
</script>
|
|
|
|
|
2020-09-28 14:40:04 +02:00
|
|
|
<SimplePage title={data.title} expanded={false} readable>
|
|
|
|
<PostAttributes post={data} full />
|
|
|
|
<WPAdapter content={data.content} />
|
2020-09-23 15:37:12 +02:00
|
|
|
</SimplePage>
|