2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Fix author page

no issue
- fixed: author page used config object as function
This commit is contained in:
Sebastian Gierlinger 2014-07-23 09:39:51 +02:00
parent 3fa2981c0e
commit ed39e375a2

View file

@ -178,7 +178,7 @@ frontendControllers = {
// Get url for tag page
function authorUrl(author, page) {
var url = config().paths.subdir + '/author/' + author + '/';
var url = config.paths.subdir + '/author/' + author + '/';
if (page && page > 1) {
url += 'page/' + page + '/';
@ -207,7 +207,7 @@ frontendControllers = {
filters.doFilter('prePostsRender', page.posts).then(function (posts) {
api.settings.read({key: 'activeTheme', context: {internal: true}}).then(function (response) {
var activeTheme = response.settings[0],
paths = config().paths.availableThemes[activeTheme.value],
paths = config.paths.availableThemes[activeTheme.value],
view = paths.hasOwnProperty('author.hbs') ? 'author' : 'index',
// Format data for template