aboutsummaryrefslogtreecommitdiff
path: root/.eleventy.js
blob: aa0771dc156c03ec952eeadc6b4584f52599ece6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = function(config) {

  config.addLiquidFilter('group_by', () => {})

  config.addCollection('icons', collection =>
      collection.getFilteredByGlob('icons/*.svg')
      .sort((a, b) => {
        console.log('a', a);
        
        return b.date - a.date
      })
  )

  return {
    dir: {
      input: "src",

      includes: "_includes",
      layouts: "_layouts",
      data: "_data",
    }
  }

};