aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/blog/dynamic-posts.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/blog/dynamic-posts.ts')
-rw-r--r--src/routes/blog/dynamic-posts.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/routes/blog/dynamic-posts.ts b/src/routes/blog/dynamic-posts.ts
new file mode 100644
index 0000000..93ecfec
--- /dev/null
+++ b/src/routes/blog/dynamic-posts.ts
@@ -0,0 +1,4 @@
+import type { Post } from '$/lib/blog/Post.svelte';
+
+export const posts = import.meta.glob("./posts/*.svx") as Record<string, () => Promise<Post>>
+export default posts