mirror of
https://github.com/mat-1/matdoesdev.git
synced 2025-08-02 14:46:04 +00:00
prefetch font
This commit is contained in:
parent
e6030ab4c0
commit
14814245a6
2 changed files with 15 additions and 24 deletions
|
@ -6,4 +6,5 @@
|
|||
<svelte:head>
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={description} />
|
||||
<link rel="prefetch" href="/fonts/atkinson-hyperlegible/latin.woff2">
|
||||
</svelte:head>
|
||||
|
|
|
@ -5,28 +5,18 @@ export const prerender = true
|
|||
// this page exists so requesting the website with Accept: application/json works
|
||||
|
||||
export const GET: RequestHandler = async ({}) => {
|
||||
return new Response(
|
||||
JSON.stringify(
|
||||
{
|
||||
title: 'matdoesdev',
|
||||
description: [
|
||||
"I'm mat, I do full-stack software development.",
|
||||
"This portfolio contains my blog posts and links to some of the projects I've made.",
|
||||
],
|
||||
socials: [
|
||||
'//github.com/mat-1"',
|
||||
'//matrix.to/#/@mat:matdoes.dev',
|
||||
'//ko-fi.com/matdoesdev',
|
||||
],
|
||||
links: ['/blog', '/projects'],
|
||||
},
|
||||
null,
|
||||
2
|
||||
),
|
||||
{
|
||||
headers: {
|
||||
'content-type': 'application/json',
|
||||
},
|
||||
}
|
||||
)
|
||||
const res = {
|
||||
title: 'matdoesdev',
|
||||
description: [
|
||||
"I'm mat, I do full-stack software development.",
|
||||
"This portfolio contains my blog posts and links to some of the projects I've made.",
|
||||
],
|
||||
socials: ['//github.com/mat-1', '//matrix.to/#/@mat:matdoes.dev', '//ko-fi.com/matdoesdev'],
|
||||
links: ['/blog', '/projects'],
|
||||
}
|
||||
return new Response(JSON.stringify(res, null, 2), {
|
||||
headers: {
|
||||
'content-type': 'application/json',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue