mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
43 lines
909 B
JavaScript
43 lines
909 B
JavaScript
|
var config = require('../../config'),
|
||
|
defaults;
|
||
|
|
||
|
defaults = {
|
||
|
index: {
|
||
|
name: 'home',
|
||
|
route: '/',
|
||
|
firstPageTemplate: 'home'
|
||
|
},
|
||
|
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;
|