add the ability to set slide theme in slide options

This commit is contained in:
butlerx 2017-05-31 23:28:43 +01:00
parent 0a6793747c
commit e5834c077f
No known key found for this signature in database
GPG Key ID: B37CA765BAA89170
2 changed files with 5 additions and 0 deletions

View File

@ -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,

View File

@ -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 -->