diff options
Diffstat (limited to 'src/pages/posts')
| -rw-r--r-- | src/pages/posts/[...page].astro | 6 | ||||
| -rw-r--r-- | src/pages/posts/[...slug].astro | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pages/posts/[...page].astro b/src/pages/posts/[...page].astro index 495fc7b..e07bc29 100644 --- a/src/pages/posts/[...page].astro +++ b/src/pages/posts/[...page].astro @@ -1,12 +1,12 @@ --- import type { CollectionEntry } from "astro:content"; -import Pagination from "@/components/Paginator.astro"; +import type { GetStaticPaths, Page } from "astro"; +import { Icon } from "astro-icon/components"; import PostPreview from "@/components/blog/PostPreview.astro"; +import Pagination from "@/components/Paginator.astro"; import { getAllPosts, getUniqueTags, groupPostsByYear } from "@/data/post"; import PageLayout from "@/layouts/Base.astro"; import { collectionDateSort } from "@/utils/date"; -import type { GetStaticPaths, Page } from "astro"; -import { Icon } from "astro-icon/components"; export const getStaticPaths = (async ({ paginate }) => { const MAX_POSTS_PER_PAGE = 10; diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index ca9c491..02047bd 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -1,8 +1,8 @@ --- import { render } from "astro:content"; +import type { GetStaticPaths, InferGetStaticPropsType } from "astro"; import { getAllPosts } from "@/data/post"; import PostLayout from "@/layouts/BlogPost.astro"; -import type { GetStaticPaths, InferGetStaticPropsType } from "astro"; // if you're using an adaptor in SSR mode, getStaticPaths wont work -> https://docs.astro.build/en/guides/routing/#modifying-the-slug-example-for-ssr export const getStaticPaths = (async () => { |
