commit | ed3a69f2f735fb84ef054900a41570c1bcc9d997 | [log] [tgz] |
---|---|---|
author | christophe dervieux <christophe.dervieux@gmail.com> | Tue Sep 21 15:49:59 2021 +0200 |
committer | christophe dervieux <christophe.dervieux@gmail.com> | Tue Sep 21 15:49:59 2021 +0200 |
tree | e74b7d0e5d987e04bf61e3d1a59bbbd951109053 | |
parent | 69c8007e73163075d4a73b28b21ab7b88fd92067 [diff] |
Support background-image variable in template like other slides https://github.com/jgm/pandoc/commit/91877692f399d46af0cfff151ce9ffde81af149d
diff --git a/inst/rmarkdown/templates/revealjs_presentation/resources/default.html b/inst/rmarkdown/templates/revealjs_presentation/resources/default.html index 83944e0..4a7ef29 100644 --- a/inst/rmarkdown/templates/revealjs_presentation/resources/default.html +++ b/inst/rmarkdown/templates/revealjs_presentation/resources/default.html
@@ -668,6 +668,11 @@ $if(parallaxBackgroundImage)$ // Parallax background image parallaxBackgroundImage: '$parallaxBackgroundImage$', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'" +$else$ +$if(background-image)$ + // Parallax background image + parallaxBackgroundImage: '$background-image$', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'" +$endif$ $endif$ $if(parallaxBackgroundSize)$ // Parallax background size