Merge pull request #1265 from ehuss/part-title-active

Fix sidebar scrolling with part titles.
This commit is contained in:
Eric Huss 2020-07-03 08:34:52 -07:00 committed by GitHub
commit 8432df1e80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ impl HelperDef for RenderToc {
// Part title // Part title
if let Some(title) = item.get("part") { if let Some(title) = item.get("part") {
out.write("<li class=\"part-title active\">")?; out.write("<li class=\"part-title\">")?;
out.write(title)?; out.write(title)?;
out.write("</li>")?; out.write("</li>")?;
continue; continue;