aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-11-19 11:56:05 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-11-19 11:56:05 -0800
commita7b2bfb42d2eeafc604774b899d5444dd4914de5 (patch)
treee5faebe686daeb48a4ce36468747c47b1edef3bc /data
parentc1fbe7b91af03a43c6a771edca85b29334975070 (diff)
downloadpandoc-a7b2bfb42d2eeafc604774b899d5444dd4914de5.tar.gz
reveal.js template fixes.
Put quotes around `controlsLayout`, `controlsBackArrows`, and `display`, since these require strings. Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.revealjs24
1 files changed, 16 insertions, 8 deletions
diff --git a/data/templates/default.revealjs b/data/templates/default.revealjs
index 4f5b11031..ff88a4482 100644
--- a/data/templates/default.revealjs
+++ b/data/templates/default.revealjs
@@ -93,12 +93,12 @@ $if(controlsTutorial)$
$endif$
$if(controlsLayout)$
// Determines where controls appear, "edges" or "bottom-right"
- controlsLayout: $controlsLayout$,
+ controlsLayout: '$controlsLayout$',
$endif$
$if(controlsBackArrows)$
// Visibility rule for backwards navigation arrows; "faded", "hidden"
// or "visible"
- controlsBackArrows: $controlsBackArrows$,
+ controlsBackArrows: '$controlsBackArrows$',
$endif$
$if(progress)$
// Display a presentation progress bar
@@ -108,17 +108,21 @@ $if(slideNumber)$
// Display the page number of the current slide
slideNumber: $slideNumber$,
$endif$
+$if(showSlideNumber)$
+ // 'all', 'print', or 'speaker'
+ showSlideNumber: '$showSlideNumber$',
+$endif$
$if(hash)$
// Add the current slide number to the URL hash so that reloading the
// page/copying the URL will return you to the same slide
hash: $hash$,
$endif$
- // Push each slide change to the browser history
-$if(history)$
- history: $history$,
-$else$
- history: true,
+$if(hashOneBasedIndex)$
+ // Start with 1 for the hash rather than 0
+ hashOneBasedIndex: $hashOneBasedIndex$,
$endif$
+ // Push each slide change to the browser history
+ history: $if(history)$$history$$else$true$endif$,
$if(keyboard)$
// Enable keyboard shortcuts for navigation
keyboard: $keyboard$,
@@ -170,6 +174,10 @@ $if(help)$
// key is pressed
help: $help$,
$endif$
+$if(pause)$
+ // Flags if it should be possible to pause the presentation (blackout)
+ pause: $pause$,
+$endif$
$if(showNotes)$
// Flags if speaker notes should be visible to all viewers
showNotes: $showNotes$,
@@ -317,7 +325,7 @@ $if(zoomKey)$
$endif$
$if(display)$
// The display mode that will be used to show slides
- display: $display$,
+ display: '$display$',
$endif$
$if(mathjax)$
math: {