Skip to content
/ dendrix Public

Commit a428bf0

Browse files
committed
upgrade index.hb for mdbook
see rust-lang/mdBook#2794
1 parent 4016545 commit a428bf0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dev/book/theme/index.hbs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,35 +207,35 @@
207207

208208
<nav class="nav-wrapper" aria-label="Page navigation">
209209
<!-- Mobile navigation buttons -->
210-
{{#previous}}
210+
{{#if previous}}
211211
<a rel="prev" href="{{ path_to_root }}{{link}}" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
212212
<i class="fa fa-angle-left"></i>
213213
</a>
214-
{{/previous}}
214+
{{/if}}
215215

216-
{{#next}}
216+
{{#if next}}
217217
<a rel="next prefetch" href="{{ path_to_root }}{{link}}" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
218218
<i class="fa fa-angle-right"></i>
219219
</a>
220-
{{/next}}
220+
{{/if}}
221221

222222
<div style="clear: both"></div>
223223
</nav>
224224
</div>
225225
</div>
226226

227227
<nav class="nav-wide-wrapper" aria-label="Page navigation">
228-
{{#previous}}
228+
{{#if previous}}
229229
<a rel="prev" href="{{ path_to_root }}{{link}}" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
230230
<i class="fa fa-angle-left"></i>
231231
</a>
232-
{{/previous}}
232+
{{/if}}
233233

234-
{{#next}}
234+
{{#if next}}
235235
<a rel="next prefetch" href="{{ path_to_root }}{{link}}" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
236236
<i class="fa fa-angle-right"></i>
237237
</a>
238-
{{/next}}
238+
{{/if}}
239239
</nav>
240240

241241
</div>

0 commit comments

Comments
 (0)