@@ -32,7 +32,7 @@ class StaticSiteContext(val root: File, sourceSets: Set[SourceSetWrapper]):
3232 lazy val layouts : Map [String , TemplateFile ] =
3333 val layoutRoot = new File (root, " _layouts" )
3434 val dirs : Array [File ] = Option (layoutRoot.listFiles()).getOrElse(Array ())
35- dirs.map { it => loadTemplateFile(it) }.map { it => it.name() -> it }.toMap
35+ dirs.map { it => loadTemplateFile(it) }.map { it => it.name -> it }.toMap
3636
3737 lazy val sideBarConfig =
3838 val sidebarFile = root.toPath.resolve(" sidebar.yml" )
@@ -111,7 +111,7 @@ class StaticSiteContext(val root: File, sourceSets: Set[SourceSetWrapper]):
111111 val path = if isBlog then " blog" else url.stripSuffix(" .html" ) + " .md"
112112 val file = root.toPath.resolve(path) // Add support for .html files!
113113 val LoadedTemplate (template, children, tFile) = loadTemplate(file.toFile, isBlog).get // Add proper logging if file does not exisits
114- LoadedTemplate (template.copy(settings = template.settings + (" title" -> List ( title))) , children, tFile)
114+ LoadedTemplate (template.copy(settings = template.settings + (" title" -> title)), children, tFile)
115115 case Sidebar .Category (title, nested) =>
116116 // Add support for index.html/index.md files!
117117 val fakeFile = new File (root, title)
@@ -141,9 +141,9 @@ class StaticSiteContext(val root: File, sourceSets: Set[SourceSetWrapper]):
141141 )
142142 StaticPageNode (
143143 myTemplate.templateFile,
144- myTemplate.templateFile.title() ,
144+ myTemplate.templateFile.title,
145145 content,
146146 JSet (dri),
147147 JList (),
148148 (myTemplate.children.map(templateToPage)).asJava
149- )
149+ )
0 commit comments