Skip to content

Commit b3ce80c

Browse files
committed
Add books
1 parent 723573b commit b3ce80c

57 files changed

Lines changed: 471 additions & 14 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.astro/collections/booknotes.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"title": {
88
"type": "string"
99
},
10+
"author": {
11+
"type": "string"
12+
},
1013
"rating": {
1114
"type": "integer",
1215
"minimum": 0,

.astro/data-store.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/content.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const booknotes = defineCollection({
3535
loader: glob({ pattern: "**/*.md", base: "./src/data/booknotes" }),
3636
schema: z.object({
3737
title: z.string(),
38+
author: z.string().optional(),
3839
rating: z.number().int().min(0).max(5),
3940
finishedAt: z.coerce.date(),
4041
}),

src/data/booknotes/1984.md

Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions

src/data/booknotes/chess-story.md

Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)