diff options
author | Max Wu | 2017-06-03 12:51:03 +0800 |
---|---|---|
committer | GitHub | 2017-06-03 12:51:03 +0800 |
commit | 38cf2f75358dc21821f1dd87a5f7f0a53c75d122 (patch) | |
tree | e2cc672b9c15cfe36ffe3e0bec60a6f4b97794b6 /public/views | |
parent | 6e119603aba3038aad7096aab96476eea7ae564b (diff) | |
parent | 0c827703c1cf24cd6a04b56dd25de483873fe0f3 (diff) |
Merge pull request #471 from butlerx/reveal/theme
add the ability to set slide theme in slide options
Diffstat (limited to '')
-rw-r--r-- | public/views/slide.ejs | 4 |
1 files changed, 4 insertions, 0 deletions
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 --> |