git.iko.soy/typeable/pandoc
on master help sign in
Add title-slide-attributes variable to reveal.js template. (#5981)
commit90804b55067a1883f6663cc424429047c37c6e8a authorFrederik Elwert <frederik.elwert@web.de> dateWed 11 Dec 2019, 17:26 (7 years ago) parenta0df2f6
2 files changed+12−1
MANUAL.txt+11 data/templates/default.revealjs+1−1
MANUAL.txt+11
@@ -2127,6 +2127,10 @@ To turn off boolean flags that default to true in reveal.js, use `0`.
21272127`slideous-url`
21282128: base URL for Slideous documents (defaults to `slideous`)
21292129
2130+`title-slide-attributes`
2131+: additional attributes for the title slide of reveal.js slide shows.
2132+ See [background in reveal.js and beamer] for an example.
2133+
21302134[reveal.js configuration options]: https://github.com/hakimel/reveal.js#configuration
21312135
21322136### Variables for Beamer slides
@@ -5369,6 +5373,10 @@ Other reveal.js background settings also work on individual slides, including
53695373`data-background-size`, `data-background-repeat`, `data-background-color`,
53705374`data-transition`, and `data-transition-speed`.
53715375
5376+To add a background image to the automatically generated title slide, use the
5377+`title-slide-attributes` variable in the YAML metadata block. It must contain
5378+a map of attribute names and values.
5379+
53725380See the [reveal.js
53735381documentation](https://github.com/hakimel/reveal.js#slide-backgrounds)
53745382for more details.
@@ -5379,6 +5387,9 @@ For example in reveal.js:
53795387---
53805388title: My Slideshow
53815389parallaxBackgroundImage: /path/to/my/background_image.png
5390+title-slide-attributes:
5391+ data-background-image: /path/to/title_image.png
5392+ data-background-size: contain
53825393---
53835394
53845395## Slide One
data/templates/default.revealjs+1−1
@@ -55,7 +55,7 @@ $endfor$
5555 <div class="slides">
5656
5757$if(title)$
58−<section id="$idprefix$title-slide">
58+<section id="$idprefix$title-slide"$for(title-slide-attributes/pairs)$ $it.key$="$it.value$"$endfor$>
5959 <h1 class="title">$title$</h1>
6060$if(subtitle)$
6161 <p class="subtitle">$subtitle$</p>