aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-05-20 17:17:15 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-05-20 17:17:15 -0700
commit3a1988b6b2c08fa8a23ae5b6ce355b9b4e0f3dbe (patch)
tree90d266187586e234f68d5350acf4f765a7325bd4 /data
parentd7b5def287aefe91f881daeecc5f72121c843b66 (diff)
downloadpandoc-3a1988b6b2c08fa8a23ae5b6ce355b9b4e0f3dbe.tar.gz
reveal.js template: use `hash: true` by default rather than...
`history: true`. Closes #6968. Setting `hash: true` is enough to get linkability to a particular page of the slide show.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.revealjs8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/default.revealjs b/data/templates/default.revealjs
index 838d5465f..8a77674dd 100644
--- a/data/templates/default.revealjs
+++ b/data/templates/default.revealjs
@@ -124,17 +124,17 @@ $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$
+ hash: $if(hash)$$hash$$else$true$endif$,
$if(hashOneBasedIndex)$
// Start with 1 for the hash rather than 0
hashOneBasedIndex: $hashOneBasedIndex$,
$endif$
+$if(history)$
// Push each slide change to the browser history
- history: $if(history)$$history$$else$true$endif$,
+ history: $history$,
+$endif$
$if(keyboard)$
// Enable keyboard shortcuts for navigation
keyboard: $keyboard$,