mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
ff7517b801
refs #5943, #5091 - split out channel config - use config.theme instead of api calls to grab title & desc - wrap rss call in a function which sets channel config for RSS feeds - change rss `getData` function to use the new multiple-query-handling fetchData functionality - make sure channelConfig is set in all tests
42 lines
909 B
JavaScript
42 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;
|