diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 13:46:07 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 13:46:07 +0300 |
| commit | f100d259d2ffebe61fef56ea3964f6d534d598c8 (patch) | |
| tree | 09d06511506da9c35585740d56598eb542fac079 /src/pages/posts | |
| parent | 1e5f5a953588cefa75396454c9aed0a79552db14 (diff) | |
Initial pleroma pull support
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 () => { |
