All pages done, build successful, images not working
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
import type { LayoutLoad } from './$types'
|
||||
export const prerender = true
|
||||
|
||||
export const load = (async ({ fetch }) => {
|
||||
const blogPostsResponse = await fetch(`/blog/articles/pageSize/5`)
|
||||
const blogPostsResponse = await fetch(`/blog/articles/pageSize/5.json`)
|
||||
const blogPostsContent = await blogPostsResponse.json()
|
||||
|
||||
return {
|
||||
|
@ -21,16 +21,16 @@
|
||||
<picture>
|
||||
<source
|
||||
media="(max-width: 550px)"
|
||||
srcset={generateSrcSet('images/profile-portugal-portrait.jpg', {
|
||||
srcset={generateSrcSet('/images/profile-portugal-portrait.jpg', {
|
||||
width: 500,
|
||||
})}
|
||||
/>
|
||||
<img
|
||||
alt="Portrait"
|
||||
srcset={generateSrcSet('images/profile-portugal-landscape.jpg', {
|
||||
srcset={generateSrcSet('/images/profile-portugal-landscape.jpg', {
|
||||
width: 800,
|
||||
})}
|
||||
src={getNFResize('images/profile-portugal-landscape.jpg', {
|
||||
src={getNFResize('/images/profile-portugal-landscape.jpg', {
|
||||
width: 800,
|
||||
})}
|
||||
/>
|
||||
|
@ -6,7 +6,7 @@ import type { PaginationResult } from '$lib/pagination/pagination'
|
||||
export const load = (async ({ fetch, params }) => {
|
||||
const { page = 1, pageSize = 7, ...filters } = parseParams(params.params)
|
||||
const articleResponse = await fetch(
|
||||
`/blog/articles/${params.params ? params.params : 'index'}`
|
||||
`/blog/articles/${params.params ? params.params : 'index'}.json`
|
||||
).then((r) => r.json())
|
||||
|
||||
return {
|
||||
|
@ -6,6 +6,8 @@ import { error, json } from '@sveltejs/kit'
|
||||
import type { PostAttributes } from '../content'
|
||||
import type { PageServerLoad } from './$types'
|
||||
|
||||
export const prerender = true
|
||||
|
||||
export interface SinglePost {
|
||||
body: string
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ import { json } from '@sveltejs/kit'
|
||||
import { getBlogListing } from '../../content'
|
||||
import type { RequestHandler } from './$types'
|
||||
|
||||
export const prerender = true
|
||||
export const GET = (async ({ params }) => {
|
||||
const handledParams = params.params === 'index' ? '' : params.params
|
||||
const { page = 1, pageSize = 7, ...filters } = parseParams(handledParams)
|
@ -1,6 +1,7 @@
|
||||
import type { RequestHandler } from '@sveltejs/kit'
|
||||
import { getFeed } from '../feed'
|
||||
|
||||
export const prerender = true
|
||||
export const GET = (async ({ setHeaders }) => {
|
||||
const feed = await getFeed()
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
import type { RequestHandler } from '@sveltejs/kit'
|
||||
import { getFeed } from '../feed'
|
||||
|
||||
export const prerender = true
|
||||
export const GET = (async ({ setHeaders }) => {
|
||||
const feed = await getFeed()
|
||||
|
||||
|
@ -5,6 +5,8 @@ import marked from 'marked'
|
||||
import { parseField } from '../../markdown/parse-markdown'
|
||||
import type { PageServerLoad } from './$types'
|
||||
|
||||
export const prerender = true
|
||||
|
||||
export interface RecordAttributes {
|
||||
name: string
|
||||
description: string
|
||||
@ -78,5 +80,5 @@ export const load = (async () => {
|
||||
presentations,
|
||||
}
|
||||
|
||||
return response;
|
||||
return response
|
||||
}) satisfies PageServerLoad
|
||||
|
@ -1,9 +0,0 @@
|
||||
import type { PageLoad } from './$types'
|
||||
|
||||
export const load = (async () => {
|
||||
const res = await fetch('/portfolio.json')
|
||||
const content = await res.json()
|
||||
return {
|
||||
content,
|
||||
}
|
||||
}) satisfies PageLoad
|
Reference in New Issue
Block a user