Pass `path_html` to HTML renderer

When linking between translations, we can use `path_html` instead of
changing .md to .html with `path`.
This commit is contained in:
Jooyung Han 2023-02-22 16:28:55 +09:00
parent 96eab23c72
commit e166a1f2a4
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ impl HtmlHandlebars {
};
ctx.data.insert("path".to_owned(), json!(path));
ctx.data.insert("path_html".to_owned(), json!(filepath));
ctx.data.insert("content".to_owned(), json!(content));
ctx.data.insert("chapter_title".to_owned(), json!(ch.name));
ctx.data.insert("title".to_owned(), json!(title));