Skip to content

Commit 4151837

Browse files
committed
website: fix English book sidebar heading (was 'Book-en-us')
The sidebar section heading matched only book-zh-cn, so English chapters fell through to the raw-type fallback and showed 'Book-en-us'. Match book-en-us too so it reads 'Main', mirroring the Chinese '正文'.
1 parent f0c133d commit 4151837

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

website/themes/moderncpp/layout/partials/sidebar.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<%-
1515
type === 'exercises'
1616
? 'Exercises'
17-
: type === 'book-zh-cn'
17+
: type === 'book-en-us' || type === 'book-zh-cn'
1818
? 'Main'
1919
: type === 'answers'
2020
? 'Reference Answers'

0 commit comments

Comments
 (0)