Skip to content

Commit 0b3ed06

Browse files
Phosphorus-MLemin-n
andcommitted
fix: add a slash into the canonical URL
Co-authored-by: Lemin-n <[email protected]>
1 parent 809e3f8 commit 0b3ed06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/html_handlebars/hbs_renderer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ impl HtmlHandlebars {
304304
ch.name.clone() + " - " + book_title
305305
};
306306

307-
let slug = ctx_path.replace(".md", "").replace("/index", "");
307+
let slug = ctx_path.replace(".md", "").replace("/index", "/");
308308

309309
let mut site_url = if let Some(site_url) = &ctx.html_config.site_url {
310310
site_url.clone()

0 commit comments

Comments
 (0)