add the ability to set slide theme in slide options
This commit is contained in:
parent
0a6793747c
commit
e5834c077f
2 changed files with 5 additions and 0 deletions
|
@ -574,6 +574,7 @@ function showPublishSlide (req, res, next) {
|
||||||
updatetime: updatetime,
|
updatetime: updatetime,
|
||||||
url: origin,
|
url: origin,
|
||||||
body: markdown,
|
body: markdown,
|
||||||
|
theme: meta.slideOptions.theme,
|
||||||
meta: JSON.stringify(extracted.meta),
|
meta: JSON.stringify(extracted.meta),
|
||||||
useCDN: config.usecdn,
|
useCDN: config.usecdn,
|
||||||
owner: note.owner ? note.owner.id : null,
|
owner: note.owner ? note.owner.id : null,
|
||||||
|
|
|
@ -30,7 +30,11 @@
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<!-- For reveal.js theme -->
|
<!-- 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">
|
<link rel="stylesheet" href="<%- url %>/build/reveal.js/css/theme/black.css" id="theme">
|
||||||
|
<% } %>
|
||||||
<!-- For syntax highlighting -->
|
<!-- For syntax highlighting -->
|
||||||
<link rel="stylesheet" href="<%- url %>/build/reveal.js/lib/css/zenburn.css">
|
<link rel="stylesheet" href="<%- url %>/build/reveal.js/lib/css/zenburn.css">
|
||||||
<!-- For overwrite reveal.js -->
|
<!-- For overwrite reveal.js -->
|
||||||
|
|
Loading…
Reference in a new issue