Skip to content

Commit f69777d

Browse files
fix: correctly rename genContentId -> stripIndexMd
`git add --patch` claims another victim...
1 parent 41180fd commit f69777d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import { file, glob } from "astro/loaders";
88
import { parse as parseToml } from "toml";
99

1010
// strips out "/index.md" prefix.
11-
const genContentId = (opts: { entry: string }) =>
11+
const stripIndexMd = (opts: { entry: string }) =>
1212
opts.entry.replace(/\/index\.md[x]?$/, "");
1313

1414
const blog = defineCollection({
1515
loader: glob({
1616
pattern: "**/index.md*",
1717
base: "./src/content/blog",
18-
generateId: genContentId,
18+
generateId: stripIndexMd,
1919
}),
2020
schema: ({ image }) =>
2121
z.object({

0 commit comments

Comments
 (0)