This commit is contained in:
1 parent
862f12b4d0
commit
e0c315d837
30 files changed
+2575
-3561
No files matched your search
@@ -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,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,4 +1,4 @@
|
||||
module.exports = (eleventyConfig) => {
|
||||
export default function (eleventyConfig) {
|
||||
eleventyConfig.addCollection('tags', (collectionApi) => {
|
||||
const tags = new Set();
|
||||
collectionApi.getFilteredByTag("posts")
|
||||
|
||||
Reference in new issue
Block a user