Skip to content

Commit 7536720

Browse files
committed
feat: add blog post building-with-ai-agents-building-for-ai-agents
1 parent 55bc1c8 commit 7536720

6 files changed

Lines changed: 1032 additions & 75 deletions

File tree

project-words.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
abstralexis
22
adduser
3+
agentskills
34
Ajeet
45
alexohneander
56
anujkumardarji
@@ -100,7 +101,9 @@ problably
100101
proto
101102
Radeon
102103
Raina
104+
realisation
103105
realpath
106+
recognised
104107
regr
105108
rehype
106109
roboto
@@ -112,10 +115,13 @@ Ryzen
112115
Seeberger
113116
Shrirang
114117
signup
118+
specialised
115119
Stackoverflow
116120
striptags
117121
struct
122+
sunsetting
118123
themoviedb
124+
Tinybird
119125
tlsv
120126
TMDB
121127
tornnab
@@ -130,7 +136,9 @@ UDPT
130136
usermod
131137
valgrind
132138
Verstappen
139+
virtualisation
133140
Vitaly
141+
Vite
134142
Webfeed
135143
webp
136144
webroot
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { getMetadata } from '$lib/data/metadata';
2+
import type { PageServerLoad } from './$types';
3+
4+
export const load: PageServerLoad = async ({ url }) => {
5+
const slug = url.pathname.split('/').filter(Boolean).pop();
6+
if (!slug) throw new Error('Slug could not be determined.');
7+
8+
const metadata = await getMetadata();
9+
const currentPost = metadata.find((post) => post.slug === slug);
10+
11+
if (!currentPost) throw new Error(`Post not found: ${slug}`);
12+
13+
return { currentPost, allPosts: metadata };
14+
};

0 commit comments

Comments
 (0)