lib/resources/backends/slim/revealjs/document.html.slim in hyla-1.0.5 vs lib/resources/backends/slim/revealjs/document.html.slim in hyla-1.0.6

- old
+ new

@@ -1,8 +1,9 @@ - slide_vertical_alignment = (attr? :revealjs_vertical_alignment) ? (attr :revealjs_vertical_alignment) : true - browser_history = (attr? :revealjs_history) ? (attr :revealjs_history) : true - display_slide_number = (attr? :revealjs_display_slide_number) ? (attr :revealjs_display_slide_number) : false +- transition = (attr? :revealjs_transition) ? (attr :revealjs_transition) : 'default' doctype 5 html lang=(attr :lang, 'en' unless attr? :nolang) head meta charset="utf-8" - [:description, :keywords, :author, :copyright].each do |key| @@ -16,10 +17,12 @@ link href="revealjs/css/reveal.min.css" rel="stylesheet" - if attr? :revealjs_theme link rel='stylesheet' href='revealjs/css/theme/#{attr :revealjs_theme}.css' id='theme' + - elsif attr? :revealjs_customtheme + link rel='stylesheet' href='#{attr :revealjs_customtheme}' id='theme' - else link rel='stylesheet' href='revealjs/css/theme/gpe.css' id='theme' - if attr? :icons, 'font' - if !(attr 'iconfont-remote', '').nil? @@ -115,10 +118,10 @@ backgroundTransition: 'default', // default/linear theme: Reveal.getQueryHash().theme, // available themes are in /css/theme // Transition style - transition: Reveal.getQueryHash().transition || 'none', // default/cube/page/concave/zoom/linear/fade/none + transition: Reveal.getQueryHash().transition || '#{transition}', // default/cube/page/concave/zoom/linear/fade/none // Parallax scrolling // parallaxBackgroundImage: 'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg', // parallaxBackgroundSize: '2100px 900px',