Pass `translations` to HTML renderer

This commit is contained in:
Jooyung Han 2023-02-22 15:30:42 +09:00
parent 88289f5fad
commit 96eab23c72
1 changed files with 6 additions and 0 deletions

View File

@ -635,6 +635,12 @@ fn make_data(
"language".to_owned(),
json!(config.book.language.clone().unwrap_or_default()),
);
if !config.book.translations.is_empty() {
data.insert(
"translations".to_owned(),
json!(config.book.translations),
);
}
data.insert(
"book_title".to_owned(),
json!(config.book.title.clone().unwrap_or_default()),