final touches

This commit is contained in:
2020-09-24 19:29:43 +02:00
parent 4df5603222
commit e71457a49d
7 changed files with 69 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
<script context="module">
import WPAdapter from '../components/WPAdapter.svelte'
import { getOne } from '../lib/wp'
export async function preload() {
@@ -42,6 +43,7 @@
</svelte:head>
<SimplePage title="About" expanded={false}>
{@html data.content}
<WPAdapter content={data.content} />
<!-- {@html data.content} -->
<img src="/images/about.jpg" alt="decoration" />
</SimplePage>

View File

@@ -1,9 +1,9 @@
<script context="module">
import { getAll } from '../lib/wp'
import { getAll, sortByAndMapDate } from '../lib/wp'
export async function preload() {
const data = await getAll('projects')
return { data }
return { data: sortByAndMapDate(data) }
}
</script>

View File

@@ -1,9 +1,9 @@
<script context="module">
import { getAll } from '../lib/wp'
import { getAll, sortByAndMapDate } from '../lib/wp'
export async function preload() {
const data = await getAll('works')
return { data }
return { data: sortByAndMapDate(data) }
}
</script>