fix(ci): proper types
This commit is contained in:
parent
28c3cfcf6d
commit
16850cf468
9 changed files with 607 additions and 15 deletions
|
|
@ -3,6 +3,7 @@ import BaseLayout from "../../layouts/BaseLayout.astro";
|
|||
import { getCollection } from "astro:content";
|
||||
import { sortItem } from "../../utils/sort.js";
|
||||
import * as collections from "../../content/config";
|
||||
import type { PostCollection } from "../../types";
|
||||
|
||||
export async function getStaticPaths() {
|
||||
return Object.keys(collections.collections)
|
||||
|
|
@ -12,7 +13,7 @@ export async function getStaticPaths() {
|
|||
}));
|
||||
}
|
||||
|
||||
const category = Astro.params.category;
|
||||
const category = Astro.params.category as PostCollection;
|
||||
const title = "Barrett Ruth";
|
||||
|
||||
const posts = await getCollection(category);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue