Skip to content

Commit 9dc3cbe

Browse files
committed
Fix titles loading from sidebar
1 parent 8c34b40 commit 9dc3cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scaladoc/src/dotty/tools/scaladoc/site/StaticSiteContext.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class StaticSiteContext(
130130

131131
val file = root.toPath.resolve(path).toFile
132132
val LoadedTemplate(template, children, _) = loadTemplate(file, isBlog).get // Add proper logging if file does not exisits
133-
LoadedTemplate(template.copy(settings = template.settings + ("title" -> title), file = file), children, file)
133+
LoadedTemplate(template.copy(settings = template.settings + ("title" -> title), file = file, title = title), children, file)
134134

135135
case Sidebar.Category(title, nested) =>
136136
// Add support for index.html/index.md files!

0 commit comments

Comments
 (0)