mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-22 09:07:09 +00:00
code style
This commit is contained in:
+27
-27
@@ -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',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,4 +118,4 @@
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -136,4 +136,4 @@
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -45,4 +45,4 @@
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -424,5 +424,3 @@
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -17,4 +17,4 @@ done
|
||||
cd website
|
||||
npm install
|
||||
npm run build
|
||||
npm run build-tailwind
|
||||
npm run build-tailwind
|
||||
|
||||
Reference in New Issue
Block a user