diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-05-28 22:06:39 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-05-28 22:06:39 -0700 |
commit | 614de9963564f1201c52ae586122b30ee58c330e (patch) | |
tree | 9763b02bb863ee166044b51aba1355728f4c39e6 /default.revealjs | |
parent | 24030660f1d17272cadfa62497be182996e2fbe2 (diff) | |
download | pandoc-templates-614de9963564f1201c52ae586122b30ee58c330e.tar.gz pandoc-templates-614de9963564f1201c52ae586122b30ee58c330e.zip |
Updated templates for pandoc 2.14
Diffstat (limited to 'default.revealjs')
-rw-r--r-- | default.revealjs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/default.revealjs b/default.revealjs index e6d6939..8a77674 100644 --- a/default.revealjs +++ b/default.revealjs | |||
@@ -52,6 +52,9 @@ $endif$ | |||
52 | $for(author)$ | 52 | $for(author)$ |
53 | <p class="author">$author$</p> | 53 | <p class="author">$author$</p> |
54 | $endfor$ | 54 | $endfor$ |
55 | $for(institute)$ | ||
56 | <p class="institute">$institute$</p> | ||
57 | $endfor$ | ||
55 | $if(date)$ | 58 | $if(date)$ |
56 | <p class="date">$date$</p> | 59 | <p class="date">$date$</p> |
57 | $endif$ | 60 | $endif$ |
@@ -59,7 +62,12 @@ $endif$ | |||
59 | $endif$ | 62 | $endif$ |
60 | $if(toc)$ | 63 | $if(toc)$ |
61 | <section id="$idprefix$TOC"> | 64 | <section id="$idprefix$TOC"> |
65 | <nav role="doc-toc"> | ||
66 | $if(toc-title)$ | ||
67 | <h2 id="$idprefix$toc-title">$toc-title$</h2> | ||
68 | $endif$ | ||
62 | $table-of-contents$ | 69 | $table-of-contents$ |
70 | </nav> | ||
63 | </section> | 71 | </section> |
64 | $endif$ | 72 | $endif$ |
65 | 73 | ||
@@ -116,17 +124,17 @@ $if(showSlideNumber)$ | |||
116 | // 'all', 'print', or 'speaker' | 124 | // 'all', 'print', or 'speaker' |
117 | showSlideNumber: '$showSlideNumber$', | 125 | showSlideNumber: '$showSlideNumber$', |
118 | $endif$ | 126 | $endif$ |
119 | $if(hash)$ | ||
120 | // Add the current slide number to the URL hash so that reloading the | 127 | // Add the current slide number to the URL hash so that reloading the |
121 | // page/copying the URL will return you to the same slide | 128 | // page/copying the URL will return you to the same slide |
122 | hash: $hash$, | 129 | hash: $if(hash)$$hash$$else$true$endif$, |
123 | $endif$ | ||
124 | $if(hashOneBasedIndex)$ | 130 | $if(hashOneBasedIndex)$ |
125 | // Start with 1 for the hash rather than 0 | 131 | // Start with 1 for the hash rather than 0 |
126 | hashOneBasedIndex: $hashOneBasedIndex$, | 132 | hashOneBasedIndex: $hashOneBasedIndex$, |
127 | $endif$ | 133 | $endif$ |
134 | $if(history)$ | ||
128 | // Push each slide change to the browser history | 135 | // Push each slide change to the browser history |
129 | history: $if(history)$$history$$else$true$endif$, | 136 | history: $history$, |
137 | $endif$ | ||
130 | $if(keyboard)$ | 138 | $if(keyboard)$ |
131 | // Enable keyboard shortcuts for navigation | 139 | // Enable keyboard shortcuts for navigation |
132 | keyboard: $keyboard$, | 140 | keyboard: $keyboard$, |