Ghost/ghost/admin/app/routes/pages.js

16 lines
380 B
JavaScript
Raw Normal View History

import PostsRoute from './posts';
import {inject as service} from '@ember/service';
export default class PagesRoute extends PostsRoute {
@service feature;
modelName = 'page';
buildRouteInfoMetadata() {
return {
titleToken: 'Pages',
mainClasses: this.feature.get('memberAttribution') ? ['gh-main-fullwidth'] : null
};
}
}