Refactor content handling to use Appwrite service instead of Astro collections, remove ViewTransitions import, update test files accordingly
This commit is contained in:
1 parent
9cc9768121
commit
c9948befaf
13 files changed
+111
-256
No files matched your search
@@ -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;
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user