diff --git a/src/pages/authors/index.astro b/src/pages/authors/index.astro index aa68b9e..1c76439 100644 --- a/src/pages/authors/index.astro +++ b/src/pages/authors/index.astro @@ -3,9 +3,9 @@ import { getCollection } from "astro:content"; import NobbzDev from "../../layouts/NobbzDev.astro"; import { authorPath } from "../../scripts/paths"; -import { withPosts, type AuthorWithPosts } from "../../scripts/authors"; +import { withPosts, type WithPosts, type Author } from "../../scripts/authors"; -const authorSorter = (a: AuthorWithPosts, b: AuthorWithPosts): number => { +const authorSorter = (a: WithPosts, b: WithPosts): number => { const postCountA = a.posts.length; const postCountB = b.posts.length; return postCountA - postCountB;