Skip to content

Commit

Permalink
✨ Feature: add some options in slides configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
LocTran committed Sep 25, 2020
1 parent cbb36bf commit 9a3bd2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions layout/includes/slide/script.pug
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ script(src=url_for("https://cdn.jsdelivr.net/npm/reveal.js@3.6.0/js/reveal.min.j
- var parallaxBackgroundSize = slide.parallaxBackgroundSize || defaultSlide.parallaxBackgroundSize
- var parallaxBackgroundHorizontal = slide.parallaxBackgroundHorizontal || defaultSlide.parallaxBackgroundHorizontal
- var parallaxBackgroundVertical = slide.parallaxBackgroundVertical || defaultSlide.parallaxBackgroundVertical
- var autoSlide = slide.autoSlide || defaultSlide.autoSlide
- var loop = slide.loop || defaultSlide.loop
- var autoSlideStoppable = slide.autoSlideStoppable || defaultSlide.autoSlideStoppable

script.
Reveal.initialize({
Expand All @@ -20,6 +23,9 @@ script.
parallaxBackgroundSize: '!{parallaxBackgroundSize}',
parallaxBackgroundHorizontal: '!{parallaxBackgroundHorizontal}',
parallaxBackgroundVertical: '!{parallaxBackgroundVertical}',
autoSlide: !{autoSlide},
loop: !{loop},
autoSlideStoppable: !{autoSlideStoppable},
markdown: {
smartypants: true
},
Expand All @@ -38,6 +44,8 @@ script.
// Speaker notes
{ src: '/js/third-party/reveal/notes.min.js', async: true },
// MathJax
{ src: '/js/third-party/reveal/math.min.js', async: true }
{ src: '/js/third-party/reveal/math.min.js', async: true },
// Search
{ src: '/js/third-party/reveal/search.min.js', async: true },
]
});
});
1 change: 1 addition & 0 deletions source/js/third-party/reveal/search.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9a3bd2e

Please sign in to comment.