diff --git a/actions/loadDeckView.js b/actions/loadDeckView.js index 3237cf11a..12ed1e83a 100644 --- a/actions/loadDeckView.js +++ b/actions/loadDeckView.js @@ -23,7 +23,11 @@ export default function loadDeckView(context, payload, done) { // console.log('loadDeckView params', payload.params, '\n', payload); res.isRootDeck = payload.params.spath === ''; context.dispatch('LOAD_DECK_CONTENT_SUCCESS', res); - context.dispatch('LOAD_DECK_METADATA_SUCCESS', {thumbnailID: res.slidesData.children[0].id}); + context.dispatch('LOAD_DECK_METADATA_SUCCESS', { + thumbnailID: res.slidesData.children[0].id, + thumbnailTheme: res.slidesData.theme, + description: res.deckData.description + }); } let pageTitle = shortTitle + ' | ' + res.slidesData.title; let cleanTitle = pageTitle.replace(/<\/?[^>]+(>|$)/g, '').replace(/'/g, '\'').replace(/"/g, '\"'); diff --git a/actions/slide/loadSlideView.js b/actions/slide/loadSlideView.js index a57c8a284..5675e9b46 100644 --- a/actions/slide/loadSlideView.js +++ b/actions/slide/loadSlideView.js @@ -24,6 +24,10 @@ export default function loadSlideView(context, payload, done) { } else { context.dispatch('LOAD_SLIDE_CONTENT_SUCCESS', res); context.dispatch('LOAD_SLIDE_EDIT_SUCCESS', res); + context.dispatch('LOAD_DECK_METADATA_SUCCESS', { + thumbnailID: res.selector.sid, + thumbnailTheme: context.getStore(DeckTreeStore).theme + }); } let deckTitle = context.getStore(DeckTreeStore).getState().deckTree.get('title'); let pageTitle = shortTitle + ' | ' + deckTitle + ' | ' + res.slide.title; diff --git a/components/DefaultHTMLLayout.js b/components/DefaultHTMLLayout.js index db148a7fe..d2560347f 100644 --- a/components/DefaultHTMLLayout.js +++ b/components/DefaultHTMLLayout.js @@ -12,12 +12,20 @@ hook({ class DefaultHTMLLayout extends React.Component { render() { let user = this.props.context.getUser(); + let pageDescription = this.props.context.getStore(ApplicationStore).getPageDescription(); + return (