Compare commits
3 Commits
1cb0dde130
...
d34eeb5cd8
Author | SHA1 | Date | |
---|---|---|---|
d34eeb5cd8 | |||
43ff0efc55 | |||
5e1b08145d |
1845
package-lock.json
generated
1845
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
@ -14,9 +14,10 @@
|
|||||||
"format": "prettier --write --plugin-search-dir=. ."
|
"format": "prettier --write --plugin-search-dir=. ."
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/adapter-auto": "^1.0.3",
|
"@sveltejs/adapter-auto": "^3.0.0",
|
||||||
"@sveltejs/adapter-node": "^1.3.1",
|
"@sveltejs/adapter-node": "^2.0.0",
|
||||||
"@sveltejs/kit": "^1.22.4",
|
"@sveltejs/kit": "^2.0.0",
|
||||||
|
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
||||||
"@types/fitvids": "^2.1.1",
|
"@types/fitvids": "^2.1.1",
|
||||||
"@types/tryghost__content-api": "^1.3.11",
|
"@types/tryghost__content-api": "^1.3.11",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
||||||
@ -40,7 +41,7 @@
|
|||||||
"typescript": "^5.1.6",
|
"typescript": "^5.1.6",
|
||||||
"unified": "^10.1.2",
|
"unified": "^10.1.2",
|
||||||
"unist-util-visit": "^4.1.2",
|
"unist-util-visit": "^4.1.2",
|
||||||
"vite": "^4.4.9"
|
"vite": "^5.0.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -51,4 +52,4 @@
|
|||||||
"svelte-material-icons": "^3.0.0",
|
"svelte-material-icons": "^3.0.0",
|
||||||
"svelte-themes": "^0.0.98"
|
"svelte-themes": "^0.0.98"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -6,7 +6,7 @@ export const load: PageLoad = async ({ params }) => {
|
|||||||
const tagSlug = params.tag;
|
const tagSlug = params.tag;
|
||||||
const tagObj = await readTag(tagSlug);
|
const tagObj = await readTag(tagSlug);
|
||||||
if (!tagObj) {
|
if (!tagObj) {
|
||||||
throw error(404, 'Tag not found');
|
error(404, 'Tag not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
const posts = await browsePostWithTag(tagSlug);
|
const posts = await browsePostWithTag(tagSlug);
|
||||||
|
@ -7,7 +7,7 @@ export const load: PageLoad = async ({ params }) => {
|
|||||||
const postSlug = params.slug;
|
const postSlug = params.slug;
|
||||||
const post = await readPost(postSlug);
|
const post = await readPost(postSlug);
|
||||||
if (!post) {
|
if (!post) {
|
||||||
throw error(404, 'Post not found');
|
error(404, 'Post not found');
|
||||||
}
|
}
|
||||||
const newHtml = await processPostHtml(post.html);
|
const newHtml = await processPostHtml(post.html);
|
||||||
post.html = newHtml;
|
post.html = newHtml;
|
||||||
|
@ -7,7 +7,7 @@ export const load: PageLoad = async ({ params }) => {
|
|||||||
const authorObj = await readAuthor(authorSlug);
|
const authorObj = await readAuthor(authorSlug);
|
||||||
|
|
||||||
if (!authorObj) {
|
if (!authorObj) {
|
||||||
throw error(404, 'Author not found');
|
error(404, 'Author not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
const posts = await browsePostWithAuthor(authorSlug);
|
const posts = await browsePostWithAuthor(authorSlug);
|
||||||
|
Loading…
Reference in New Issue
Block a user