Refactor content handling to use Appwrite service instead of Astro collections, remove ViewTransitions import, update test files accordingly

This commit is contained in:
Spaghet committed 2025-08-23 20:10:43 -04:00
1 parent 9cc9768121
commit c9948befaf
13 files changed
+111 -256

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@ import TopLayout from "@layouts/TopLayout.astro"
import BottomLayout from "@layouts/BottomLayout.astro"
import Blog from "@components/Blog"
import { BLOG } from "@consts"
import { getBlogPosts, getBlogPostsPaginated } from "@lib/appwrite-service"
import { getBlogPostsPaginated } from "@lib/appwrite-service"
// Get page and limit from URL parameters
const url = new URL(typeof window !== 'undefined' ? window.location.href : 'http://localhost')
@@ -14,7 +14,7 @@ const page = parseInt(pageParam)
const limit = parseInt(limitParam)
// Fetch paginated blog posts
const { posts, total } = await getBlogPostsPaginated(page, limit)
const { posts } = await getBlogPostsPaginated(page, limit)
.then(result => {
return result;
})