Skip to content

Commit 6201e57

Browse files
authored
[guide/format/theme/index-hbs] chapter_title and book_title are inverted
Looking into the code, we can confirm that the implementation is `{{ chapter_title }} - {{ book_title }}` and not `{{ book_title }} - {{ chapter_title }}` as written in the guide: https://github.com/rust-lang/mdBook/blob/4c951d530d7cf225fcca18d6e9146b28bf8dcf10/src/renderer/html_handlebars/hbs_renderer.rs#L69
1 parent cf2459f commit 6201e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guide/src/format/theme/index-hbs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Here is a list of the properties that are exposed:
1919

2020
- ***language*** Language of the book in the form `en`, as specified in `book.toml` (if not specified, defaults to `en`). To use in <code
2121
class="language-html">\<html lang="{{ language }}"></code> for example.
22-
- ***title*** Title used for the current page. This is identical to `{{ book_title }} - {{ chapter_title }}` unless `book_title` is not set in which case it just defaults to the `chapter_title`.
22+
- ***title*** Title used for the current page. This is identical to `{{ chapter_title }} - {{ book_title }}` unless `book_title` is not set in which case it just defaults to the `chapter_title`.
2323
- ***book_title*** Title of the book, as specified in `book.toml`
2424
- ***chapter_title*** Title of the current chapter, as listed in `SUMMARY.md`
2525

0 commit comments

Comments
 (0)