forked from danurbanowicz/eleventy-netlify-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
images.config.js
54 lines (52 loc) · 1.17 KB
/
images.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const config = {
// Common
sourceDir : './src/public/images/dist',
relativeSourceDir : '/public/images/dist',
// Set to true to use LFS
lfs : false,
// If lfs = true;
nf_resize: 'fit',
// Array of size objects
sizes : [
{
name: 'large',
width: 1400,
height: false,
isResponsive: true,
customQuery: {
width: 300,
path: 'fit&w=300&h=300',
width2x: 600,
path2x: 'fit&w=600&h=600'
}
},
{
name: 'medium',
width: 800,
height: false,
isResponsive: true
},
{
name: 'small',
width: 480,
height: false,
isResponsive: true
},
{
name: 'thumb',
width: 150,
height: 150,
isResponsive: false
},
{
name: 'icon',
width: 50,
height: 25,
isResponsive: false
},
],
}
config.sizeNames = config.sizes.map(function(item){
return item.name;
})
module.exports = config;