Initial Commit
This commit is contained in:
30
.eleventy.js
Normal file
30
.eleventy.js
Normal file
@ -0,0 +1,30 @@
|
||||
const blogTools = require("eleventy-plugin-blog-tools");
|
||||
|
||||
module.exports = function(eleventyConfig) {
|
||||
eleventyConfig.setUseGitIgnore(false);
|
||||
eleventyConfig.addPassthroughCopy('./src/css');
|
||||
eleventyConfig.addPassthroughCopy('./src/assets/');
|
||||
eleventyConfig.addWatchTarget('./src/css');
|
||||
eleventyConfig.addWatchTarget('./src/components');
|
||||
|
||||
eleventyConfig.setDataDeepMerge(true);
|
||||
|
||||
eleventyConfig.setTemplateFormats("html,njk,md");
|
||||
|
||||
eleventyConfig.addCollection('posts', function(collectionApi) {
|
||||
return collectionApi.getFilteredByGlob('src/blog/posts/**/*.md')
|
||||
});
|
||||
|
||||
eleventyConfig.addPlugin(blogTools);
|
||||
|
||||
|
||||
return {
|
||||
passthroughFileCopy: true,
|
||||
|
||||
dir: {
|
||||
input: 'src',
|
||||
includes: '_includes',
|
||||
output: "_site"
|
||||
}
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user