-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.ergo.js
44 lines (34 loc) · 1.07 KB
/
theme.ergo.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
/*
This is a minimal skeleton config for ergo cms. See online for more options
*/
module.exports = {
name: "HTML5 UP - Future Imperfect",
url: "https://github.com/ergo-cms/theme-future-imperfect",
asset_paths: ['assets', 'images'],
default_fields: {
image: 'post.jpg',
author_image: 'avatar.jpg',
author_url: '/authors.html',
tags_url: '/tags.html',
categories_url: '/categories.html',
feed_url: '/rss.xml',
// gracefully accept paginate plugin support
auto_paginate: function(list, params, list_name) {
if (!!this.paginate)
return this.paginate.call(this, list, params, list_name);
else
return list; // do nothing, if paginate not available
},
// gracefully support thumbnail plugin for srcset & thumb filters
safe_srcset: function(image_name, params, data_name) {
if (!!this.srcset)
return this.srcset.call(this, image_name, params, data_name);
return '';
},
safe_thumb: function(image_name, params, data_name) {
if (!!this.thumb)
return this.thumb.call(this, image_name, params, data_name);
return image_name;
},
}
};