git.iko.soy/typeable/pandoc
on master help sign in
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.

commit3a1988b6b2c08fa8a23ae5b6ce355b9b4e0f3dbe authorJohn MacFarlane <jgm@berkeley.edu> dateThu 20 May 2021, 17:17 (5 years ago) parentd7b5def
1 file changed+4−4
data/templates/default.revealjs+4−4
data/templates/default.revealjs+4−4
@@ -124,17 +124,17 @@ $if(showSlideNumber)$
124124 // 'all', 'print', or 'speaker'
125125 showSlideNumber: '$showSlideNumber$',
126126$endif$
127−$if(hash)$
128127 // Add the current slide number to the URL hash so that reloading the
129128 // page/copying the URL will return you to the same slide
130− hash: $hash$,
131−$endif$
129+ hash: $if(hash)$$hash$$else$true$endif$,
132130$if(hashOneBasedIndex)$
133131 // Start with 1 for the hash rather than 0
134132 hashOneBasedIndex: $hashOneBasedIndex$,
135133$endif$
134+$if(history)$
136135 // Push each slide change to the browser history
137− history: $if(history)$$history$$else$true$endif$,
136+ history: $history$,
137+$endif$
138138$if(keyboard)$
139139 // Enable keyboard shortcuts for navigation
140140 keyboard: $keyboard$,