Skip to content

Commit 93ae66d

Browse files
committed
deal with breaking mdbook changes
1 parent 30f3d05 commit 93ae66d

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

book/text/book.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[book]
22
authors = ["Ryan Goodfellow"]
33
language = "en"
4-
multilingual = false
54
src = "src"
65
title = "The x4c Book"
76

book/text/theme/index.hbs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -196,35 +196,35 @@
196196

197197
<nav class="nav-wrapper" aria-label="Page navigation">
198198
<!-- Mobile navigation buttons -->
199-
{{#previous}}
200-
<a rel="prev" href="{{ path_to_root }}{{link}}" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
199+
{{#if previous}}
200+
<a rel="prev" href="{{ path_to_root }}{{previous.link}}" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
201201
<i class="fa fa-angle-left"></i>
202202
</a>
203-
{{/previous}}
203+
{{/if}}
204204

205-
{{#next}}
206-
<a rel="next prefetch" href="{{ path_to_root }}{{link}}" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
205+
{{#if next}}
206+
<a rel="next prefetch" href="{{ path_to_root }}{{next.link}}" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
207207
<i class="fa fa-angle-right"></i>
208208
</a>
209-
{{/next}}
209+
{{/if}}
210210

211211
<div style="clear: both"></div>
212212
</nav>
213213
</div>
214214
</div>
215215

216216
<nav class="nav-wide-wrapper" aria-label="Page navigation">
217-
{{#previous}}
218-
<a rel="prev" href="{{ path_to_root }}{{link}}" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
217+
{{#if previous}}
218+
<a rel="prev" href="{{ path_to_root }}{{previous.link}}" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
219219
<i class="fa fa-angle-left"></i>
220220
</a>
221-
{{/previous}}
221+
{{/if}}
222222

223-
{{#next}}
224-
<a rel="next prefetch" href="{{ path_to_root }}{{link}}" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
223+
{{#if next}}
224+
<a rel="next prefetch" href="{{ path_to_root }}{{next.link}}" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
225225
<i class="fa fa-angle-right"></i>
226226
</a>
227-
{{/next}}
227+
{{/if}}
228228
</nav>
229229

230230
</div>

0 commit comments

Comments
 (0)