Add title-slide-attributes variable to reveal.js template. (#5981)
This commit is contained in:
parent
a0df2f676c
commit
90804b5506
2 changed files with 12 additions and 1 deletions
11
MANUAL.txt
11
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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue