added eleventy
This commit is contained in:
parent
3a03290f8f
commit
1d70658e41
30 changed files with 3041 additions and 108 deletions
27
.eleventy.js
Normal file
27
.eleventy.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
|
||||
|
||||
module.exports = function(eleventyConfig) {
|
||||
eleventyConfig.addWatchTarget("./scss/");
|
||||
|
||||
eleventyConfig.addPlugin(eleventyNavigationPlugin);
|
||||
eleventyConfig.setUseGitIgnore(false);
|
||||
eleventyConfig.addPassthroughCopy({
|
||||
"img": "img",
|
||||
"font": "font",
|
||||
"node_modules/@fortawesome/fontawesome-free/webfonts/": "font",
|
||||
"node_modules/flag-icon-css/flags/4x3/(de|us)*": "flags"
|
||||
});
|
||||
|
||||
eleventyConfig.addCollection("sites_en", function(collection) {
|
||||
return collection.getFilteredByGlob(".sites/en/posts/*.md");
|
||||
});
|
||||
|
||||
return {
|
||||
dir: {
|
||||
input: "sites",
|
||||
includes: "_includes",
|
||||
layouts: "_includes/layouts",
|
||||
output: "dist"
|
||||
}
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue