diff options
-rwxr-xr-x | lib/response.js | 1 | ||||
-rw-r--r-- | public/views/slide.ejs | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/response.js b/lib/response.js index a9abd1d4..fec6c561 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 26c38bba..7ff5016e 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -30,7 +30,11 @@ <% } %> <!-- For reveal.js theme --> + <% if(typeof theme !== 'undefined' && theme) { %> + <link rel="stylesheet" href="<%- url %>/build/reveal.js/css/theme/<%= theme %>.css" id="theme"> + <% } else { %> <link rel="stylesheet" href="<%- url %>/build/reveal.js/css/theme/black.css" id="theme"> + <% } %> <!-- For syntax highlighting --> <link rel="stylesheet" href="<%- url %>/build/reveal.js/lib/css/zenburn.css"> <!-- For overwrite reveal.js --> |