code style

This commit is contained in:
Evgeny Poberezkin
2022-08-28 16:15:58 +01:00
parent 6e9871ae16
commit 39d8489fb2
6 changed files with 31 additions and 33 deletions
+27 -27
View File
@@ -1,33 +1,33 @@
// const Card = require('./src/_includes/components/Card');
module.exports = function (eleventyConfig) {
// Keeps the same directory structure.
eleventyConfig.addPassthroughCopy("src/assets/");
eleventyConfig.addPassthroughCopy("src/img");
eleventyConfig.addPassthroughCopy("src/css");
eleventyConfig.addPassthroughCopy("src/js");
eleventyConfig.addPassthroughCopy("src/contact");
eleventyConfig.addPassthroughCopy("src/app-demo");
module.exports = (ty) => {
// Keeps the same directory structure.
ty.addPassthroughCopy("src/assets/")
ty.addPassthroughCopy("src/img")
ty.addPassthroughCopy("src/css")
ty.addPassthroughCopy("src/js")
ty.addPassthroughCopy("src/contact")
ty.addPassthroughCopy("src/app-demo")
eleventyConfig.addCollection('blogs', function (collection) {
return collection.getFilteredByGlob('src/blog/*.md').reverse();
});
ty.addCollection("blogs", (collection) =>
collection.getFilteredByGlob("src/blog/*.md").reverse()
)
eleventyConfig.addWatchTarget("src/css");
eleventyConfig.addWatchTarget("markdown/");
eleventyConfig.addWatchTarget("components/Card.js");
ty.addWatchTarget("src/css")
ty.addWatchTarget("markdown/")
ty.addWatchTarget("components/Card.js")
// eleventyConfig.addShortcode("Card",Card);
// ty.addShortcode("Card",Card);
return {
dir: {
input: 'src',
includes: '_includes',
output: '_site',
},
templateFormats: ['md', 'njk', 'html'],
markdownTemplateEngine: 'njk',
htmlTemplateEngine: 'njk',
dataTemplateEngine: 'njk',
};
};
return {
dir: {
input: 'src',
includes: '_includes',
output: '_site',
},
templateFormats: ['md', 'njk', 'html'],
markdownTemplateEngine: 'njk',
htmlTemplateEngine: 'njk',
dataTemplateEngine: 'njk',
}
}
+1 -1
View File
@@ -118,4 +118,4 @@
</script>
</body>
</html>
</html>
+1 -1
View File
@@ -136,4 +136,4 @@
display: inline-block;
}
}
</style>
</style>
+1 -1
View File
@@ -45,4 +45,4 @@
</div>
</footer>
</body>
</html>
</html>
-2
View File
@@ -424,5 +424,3 @@
</footer>
</body>
</html>
+1 -1
View File
@@ -17,4 +17,4 @@ done
cd website
npm install
npm run build
npm run build-tailwind
npm run build-tailwind