diff options
-rw-r--r-- | MANUAL.txt | 11 | ||||
-rw-r--r-- | data/templates/default.revealjs | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/MANUAL.txt b/MANUAL.txt index 4cc5c28b5..245926ff7 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -2127,6 +2127,10 @@ To turn off boolean flags that default to true in reveal.js, use `0`. `slideous-url` : base URL for Slideous documents (defaults to `slideous`) +`title-slide-attributes` +: additional attributes for the title slide of reveal.js slide shows. + See [background in reveal.js and beamer] for an example. + [reveal.js configuration options]: https://github.com/hakimel/reveal.js#configuration ### Variables for Beamer slides @@ -5369,6 +5373,10 @@ Other reveal.js background settings also work on individual slides, including `data-background-size`, `data-background-repeat`, `data-background-color`, `data-transition`, and `data-transition-speed`. +To add a background image to the automatically generated title slide, use the +`title-slide-attributes` variable in the YAML metadata block. It must contain +a map of attribute names and values. + See the [reveal.js documentation](https://github.com/hakimel/reveal.js#slide-backgrounds) for more details. @@ -5379,6 +5387,9 @@ For example in reveal.js: --- title: My Slideshow parallaxBackgroundImage: /path/to/my/background_image.png +title-slide-attributes: + data-background-image: /path/to/title_image.png + data-background-size: contain --- ## Slide One diff --git a/data/templates/default.revealjs b/data/templates/default.revealjs index f63fc144e..4d2710fa4 100644 --- a/data/templates/default.revealjs +++ b/data/templates/default.revealjs @@ -55,7 +55,7 @@ $endfor$ <div class="slides"> $if(title)$ -<section id="$idprefix$title-slide"> +<section id="$idprefix$title-slide"$for(title-slide-attributes/pairs)$ $it.key$="$it.value$"$endfor$> <h1 class="title">$title$</h1> $if(subtitle)$ <p class="subtitle">$subtitle$</p> |