diff --git a/lib/response.js b/lib/response.js index a9abd1d..fec6c56 100755 --- a/lib/response.js +++ b/lib/response.js @@ -574,6 +574,7 @@ function showPublishSlide (req, res, next) { updatetime: updatetime, url: origin, body: markdown, + theme: meta.slideOptions.theme, meta: JSON.stringify(extracted.meta), useCDN: config.usecdn, owner: note.owner ? note.owner.id : null, diff --git a/public/views/slide.ejs b/public/views/slide.ejs index 26c38bb..7ff5016 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -30,7 +30,11 @@ <% } %> + <% if(typeof theme !== 'undefined' && theme) { %> + + <% } else { %> + <% } %>