@@ -102,18 +102,16 @@ local function setup()
102102 if not isFile(path) then
103103 local title = getFilename(pathToSite)
104104
105- local contents = formatTemplate(
106- [=[
107- <!DOCTYPE html>
108- <html lang="{{ site.languageCode }}">
105+ local contents = !(unindent[=[
106+ <!DOCTYPE html>
107+ <html lang="{{ site.languageCode }}">
109108 <head>
110109 <meta charset="utf-8">
111-
112110 <meta name="viewport" content="width=device-width, initial-scale=1">
113111 {{ generatorMeta() }}
114112
115113 <title>
116- {{ echo(page.title ~= "" and page.title.." -" or "") }}
114+ {{ echo(page.title ~= "" and page.title.." - " or "") * }}
117115 {{ echo(site.title) }}
118116 </title>
119117
@@ -123,12 +121,8 @@ local function setup()
123121 <body>
124122 {{ page.content }}
125123 </body>
126-
127- </html>
128- ]=], {
129- -- ...
130- }
131- )
124+ </html>
125+ ]=])
132126
133127 local file, err = io.open(path, "wb")
134128 if not file then errorNoPos(err) end
@@ -1357,8 +1351,10 @@ local function buildWebsite()
13571351 local main_chunk, err = loadLuaFile("config.lua", scriptEnvironment)
13581352 if not main_chunk then errorNoPos(err) end
13591353
1354+ timestampPrintVerbose("--> config(start)")
13601355 local config = main_chunk()
13611356 lineAssertTable(config, nil, nil, "%s: The file must return a table.", maybeFullPath"config.lua")
1357+ timestampPrintVerbose("--> config(finish)")
13621358
13631359 local function get(kPath, default, assertFunc, ...)
13641360 local v = config
0 commit comments