From e5834c077f203aa5c80f777f91e0bf650614241d Mon Sep 17 00:00:00 2001 From: butlerx Date: Wed, 31 May 2017 23:28:43 +0100 Subject: [PATCH] add the ability to set slide theme in slide options --- lib/response.js | 1 + public/views/slide.ejs | 4 ++++ 2 files changed, 5 insertions(+) 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 { %> + <% } %>