1
0
Fork 0
gaiety-life/.eleventy.js
Ava Gaiety W 68305711b2 TIL
2023-09-13 09:01:27 -05:00

29 lines
885 B
JavaScript

const emojiReadTime = require("@11tyrocks/eleventy-plugin-emoji-readtime");
const pluginRss = require("@11ty/eleventy-plugin-rss");
const metagen = require('eleventy-plugin-metagen');
module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy("./content/images");
eleventyConfig.addPlugin(emojiReadTime);
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(metagen);
eleventyConfig.addCollection("posts", function(collection) {
return collection.getFilteredByGlob("content/posts/**/*.md");
});
eleventyConfig.addCollection("tils", function(collection) {
return collection.getFilteredByGlob("content/tils/**/*.md");
});
return {
htmlTemplateEngine: "njk",
markdownTemplateEngine: "md",
dir: {
includes: "../_includes",
layouts: "../_includes",
input: "content",
output: "_site"
}
}
};