.eleventy.js 809 B

1234567891011121314151617181920212223242526272829303132333435
  1. const eleventySass = require("eleventy-sass");
  2. module.exports = function (eleventyConfig) {
  3. eleventyConfig.addPlugin(eleventySass);
  4. eleventyConfig.addWatchTarget("./src");
  5. eleventyConfig.addWatchTarget("./icons");
  6. eleventyConfig.setQuietMode(true);
  7. eleventyConfig.addLiquidTag("include_cached", function (liquidEngine) {
  8. return {
  9. parse: function (tagToken, remainingTokens) {
  10. this.str = tagToken.args;
  11. },
  12. render: async function (scope, hash) {
  13. var str = await this.liquid.evalValue(this.str, scope);
  14. return str;
  15. }
  16. };
  17. });
  18. eleventyConfig.addFilter("group_by", function (value) {
  19. return value
  20. });
  21. return {
  22. pathPrefix: "/",
  23. dir: {
  24. input: "src",
  25. layouts: "_layouts",
  26. includes: "_includes"
  27. },
  28. };
  29. };