chore: Updated zod schema for post desc length
9fccf49c
2 file(s) · +2 −4
| 10 | 10 | const post = defineCollection({ |
|
| 11 | 11 | schema: z.object({ |
|
| 12 | 12 | title: z.string().max(60), |
|
| 13 | - | description: z.string().min(50).max(160), |
|
| 13 | + | description: z.string().min(10).max(160), |
|
| 14 | 14 | publishDate: z.string().transform((str) => new Date(str)), |
|
| 15 | 15 | tags: z.array(z.string()).default([]).transform(removeDupsAndLowerCase), |
|
| 16 | 16 | ogImage: z.string().optional(), |
| 1 | 1 | --- |
|
| 2 | 2 | title: "The Meaning of Life" |
|
| 3 | 3 | publishDate: "15 Aug 2025" |
|
| 4 | - | description: "42? Not exactly, but pretty close" |
|
| 4 | + | description: "42? Sorta, but not exactly" |
|
| 5 | 5 | tags: ["personal", "philosophy"] |
|
| 6 | 6 | ogImage: "https://files.stevedylan.dev/42.png" |
|
| 7 | 7 | --- |
|
| 8 | - | ||
| 9 | - | 42 |
|
| 10 | 8 | ||
| 11 | 9 | Even if you haven't read the book or seen the movie, you are likely familiar with the famous yet humorous answer to the meaning of life: 42. Just a number. The original author didn't intend any deeper meaning and stresses that it means nothing. Ironically I think like everything in life, it holds an ounce of truth beyond what we see in it. |
|
| 12 | 10 |