Update dependencies

This commit is contained in:
2021-10-07 16:51:44 +02:00
parent 2c4dec5efd
commit f51c9c67ee
16 changed files with 1951 additions and 1041 deletions

View File

@ -1,4 +1,4 @@
<script context="module" lang="typescript">
<script context="module" lang="ts">
import { take } from 'ramda'
import type { LoadInput, LoadOutput } from '@sveltejs/kit/types/page'
@ -16,9 +16,11 @@
}
</script>
<script lang="typescript">
<script lang="ts">
import Nav from '../components/Nav.svelte'
import Footer from '../components/Footer.svelte'
import { mainStyle } from '../styles/vanilla.css'
export let segment
export let latestPosts
</script>
@ -26,13 +28,13 @@
<div class="app-content">
<Nav {segment} />
<main>
<main class={mainStyle}>
<slot />
</main>
<Footer {latestPosts} />
</div>
<style global>
<style global lang="less">
@import '../styles/global.module.less';
.app-content {

View File

@ -22,11 +22,13 @@ export async function get({ params }: Request): Promise<Response> {
return {
status: 404,
body: 'Post not found \n' + e.toString(),
headers: {},
}
}
return {
status: 500,
body: 'Error loading post source file. \n' + e.toString(),
headers: {},
}
}

View File

@ -1,4 +1,4 @@
<script context="module" lang="typescript">
<script context="module" lang="ts">
import type { LoadInput, LoadOutput } from '@sveltejs/kit/types/page'
export async function load({
@ -25,7 +25,7 @@
}
</script>
<script lang="typescript">
<script lang="ts">
import ArticleFooter from '../../components/blog/article-footer.svelte'
export let post
@ -42,7 +42,7 @@
</div>
<ArticleFooter {post} />
<style>
<style lang="less">
@import '../../styles/variables.module.less';
/*

View File

@ -1,4 +1,4 @@
<script context="module" lang="typescript">
<script context="module" lang="ts">
/**
* @type {import('@sveltejs/kit').Load}
*/
@ -17,7 +17,7 @@
}
</script>
<script lang="typescript">
<script lang="ts">
import ArticleFooter from '../../components/blog/article-footer.svelte'
import type { PostContent } from './_content'

View File

@ -11,7 +11,10 @@ export interface RecordAttributes {
}
export interface ProjectAttributes extends RecordAttributes {
image: string
image: {
source: string
image_description: string
}
}
export interface PortfolioAttributes {