Upgrade to Eleventy 3.0.0
Build and copy to prod / build-and-copy (push) Has been cancelled

This commit is contained in:
Lewis Dale committed 2024-10-06 12:36:54 +01:00
1 parent 862f12b4d0
commit e0c315d837
30 files changed
+2575 -3561

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
const tags = require('./tags');
const posts = require('./posts');
import tags from './tags.js';
import posts from './posts.js';
module.exports = function(eleventyConfig) {
export default function(eleventyConfig) {
eleventyConfig.addPlugin(tags);
eleventyConfig.addPlugin(posts);
}
+1 -1
View File
@@ -1,4 +1,4 @@
module.exports = function (eleventyConfig) {
export default function (eleventyConfig) {
eleventyConfig.addCollection('posts',collectionApi =>
collectionApi.getFilteredByTag("posts")
.filter(p => process.env.DEBUG || !p.data.tags.includes("draft"))
+1 -1
View File
@@ -1,4 +1,4 @@
module.exports = (eleventyConfig) => {
export default function (eleventyConfig) {
eleventyConfig.addCollection('tags', (collectionApi) => {
const tags = new Set();
collectionApi.getFilteredByTag("posts")