2015-10-25 23:00:29 +03:00
|
|
|
var config = require('../../config'),
|
|
|
|
defaults;
|
|
|
|
|
|
|
|
defaults = {
|
|
|
|
index: {
|
2015-11-24 18:12:50 +03:00
|
|
|
name: 'index',
|
2015-10-25 23:00:29 +03:00
|
|
|
route: '/',
|
2015-11-24 18:12:50 +03:00
|
|
|
frontPageTemplate: 'home'
|
2015-10-25 23:00:29 +03:00
|
|
|
},
|
|
|
|
tag: {
|
|
|
|
name: 'tag',
|
|
|
|
route: '/' + config.routeKeywords.tag + '/:slug/',
|
|
|
|
postOptions: {
|
|
|
|
filter: 'tags:%s'
|
|
|
|
},
|
|
|
|
data: {
|
|
|
|
tag: {
|
|
|
|
type: 'read',
|
|
|
|
resource: 'tags',
|
|
|
|
options: {slug: '%s'}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
slugTemplate: true
|
|
|
|
},
|
|
|
|
author: {
|
|
|
|
name: 'author',
|
|
|
|
route: '/' + config.routeKeywords.author + '/:slug/',
|
|
|
|
postOptions: {
|
|
|
|
filter: 'author:%s'
|
|
|
|
},
|
|
|
|
data: {
|
|
|
|
author: {
|
|
|
|
type: 'read',
|
|
|
|
resource: 'users',
|
|
|
|
options: {slug: '%s'}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
slugTemplate: true
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = defaults;
|