Upgrade dep, housekeeping
This commit is contained in:
parent
eb0e826cd9
commit
90ebe99c52
@ -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
|
||||
|
@ -89,20 +89,6 @@ export default async function(eleventyConfig) {
|
||||
// selector: "h1,h2,h3,h4,h5,h6",
|
||||
});
|
||||
|
||||
// Customize Markdown library settings:
|
||||
// eleventyConfig.amendLibrary("md", mdLib => {
|
||||
// mdLib.use(markdownItAnchor, {
|
||||
// permalink: markdownItAnchor.permalink.ariaHidden({
|
||||
// placement: "after",
|
||||
// class: "header-anchor",
|
||||
// symbol: "#",
|
||||
// ariaHidden: false,
|
||||
// }),
|
||||
// level: [1,2,3,4],
|
||||
// slugify: eleventyConfig.getFilter("slugify")
|
||||
// });
|
||||
// });
|
||||
|
||||
eleventyConfig.addShortcode("currentBuildDate", () => {
|
||||
return (new Date()).toISOString();
|
||||
});
|
||||
|
@ -38,7 +38,7 @@
|
||||
"@11ty/eleventy": "3.0.0-alpha.17",
|
||||
"@11ty/eleventy-img": "5.0.0-beta.5",
|
||||
"@11ty/eleventy-navigation": "^0.3.5",
|
||||
"@11ty/eleventy-plugin-rss": "2.0.0-beta.8",
|
||||
"@11ty/eleventy-plugin-rss": "^2.0.2",
|
||||
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"luxon": "^3.4.4",
|
||||
|
Loading…
Reference in New Issue
Block a user