Upgrade dep, housekeeping

This commit is contained in:
Zach Leatherman
2024-07-25 16:06:34 -05:00
parent eb0e826cd9
commit 90ebe99c52
3 changed files with 5 additions and 15 deletions

View File

@@ -6,6 +6,8 @@ export default {
"posts"
],
"layout": "layouts/post.njk",
// Draft blog posts, validate `draft` front matter
eleventyDataSchema: function(data) {
let result = z.object({
draft: z.boolean().or(z.undefined()),
@@ -15,6 +17,8 @@ export default {
throw fromZodError(result.error);
}
},
// Draft blog posts, exclude from builds and collections
eleventyComputed: {
permalink: (data) => {
// Always skip during non-watch/serve builds