Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
7 changed files
with
180 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.