nyergler / hieroglyph

Generate HTML presentations from plain text sources with all the power of Sphinx.
https://hieroglyph.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
261 stars 73 forks source link

slides2 theme prev/next areas and the slide hash #99

Closed dsschult closed 9 years ago

dsschult commented 9 years ago

In the slides2 theme, let the prev/next slide areas change the hash number, so reloading the page returns to the current slide.

Before this change, the event is passed to the function and evaluated as "dontPush" when updating the hash. Specifying that argument as undefined gets around this problem.