Initial Commit

This commit is contained in:
2022-08-07 00:57:36 +10:00
commit 8321163593
18 changed files with 357 additions and 0 deletions

30
.eleventy.js Normal file
View 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"
}
};
}