mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
da92eadecd
no issue - modified `ui` service's `routeDidChange` handler to update it's `mainClass` property based on the new route's metadata - used in the future for switching screen background colours To use the feature, modify or add a `buildRouteInfoMetadata` hook in the route which you'd like to change, eg: ```js export default AuthenticatedRoute.extend({ ... buildRouteInfoMetadata() { return { bodyClasses: ['my-body-class'], mainClasses: ['grey-bg'] // <-------- }; } }); ``` The route hierarchy is taken into consideration with classes being added for all currently shown routes. For example if you wanted to add an `editor` class to all editor routes you could use the hook in `routes/editor.js` then if you added an `editor-new` class in `routes/editor/new.js` the resulting HTML output on the "New story" screen would be: ```html <main class="gh-main editor editor-new"> ``` |
||
---|---|---|
.. | ||
.github | ||
app | ||
config | ||
lib | ||
mirage | ||
public/assets | ||
tests | ||
.csscomb.json | ||
.editorconfig | ||
.ember-cli | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.travis.yml | ||
.watchmanconfig | ||
ember-cli-build.js | ||
Gruntfile.js | ||
LICENSE | ||
package.json | ||
README.md | ||
renovate.json | ||
SECURITY.md | ||
testem.js | ||
yarn.lock |
Ghost-Admin
This is the home of Ember.js based admin client that ships with Ghost.
Do you want to set up a Ghost blog? Check the getting started guide
Do you want to modify or contribute to Ghost-Admin? Please read how to install from source and swing by our forum if you need any help 😄
Have a bug or issue?
Bugs and issues (even if they only affect the admin client) should be opened on the core Ghost repository.
Copyright & License
Copyright (c) 2013-2019 Ghost Foundation - Released under the MIT license. Ghost and the Ghost Logo are trademarks of Ghost Foundation Ltd. Please see our trademark policy for info on acceptable usage.