Skip to content

Commit 6af3eea

Browse files
committed
Print version: fix up header links
1 parent ec42e2f commit 6af3eea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/renderer/html_handlebars/hbs_renderer.rs

+3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ impl Renderer for HtmlHandlebars {
138138

139139
// Render the handlebars template with the data
140140
debug!("[*]: Render template");
141+
141142
let rendered = try!(handlebars.render("index", &data));
143+
let rendered = build_header_links(rendered);
144+
142145
try!(book.write_file(Path::new("print").with_extension("html"), &rendered.into_bytes()));
143146
info!("[*] Creating print.html ✓");
144147

0 commit comments

Comments
 (0)