WPI
This commit is contained in:
@@ -167,11 +167,11 @@ end
|
||||
|
||||
function M:build()
|
||||
if self.proto == "http" then
|
||||
local header = self.header:gsub("{{TITLE}}", self.title or "Document")
|
||||
local header = self.default_header:gsub("{{TITLE}}", self.title or "Document")
|
||||
local favicon_html = self.favicon or '<link rel="icon" href="data:image/svg+xml,<svg xmlns=%%22http://www.w3.org/2000/svg%%22 viewBox=%%220 0 100 100%%22><text y=%%22.9em%%22 font-size=%%2290%%22>🔥</text></svg>">'
|
||||
header = header:gsub("{{FAVICON}}", favicon_html)
|
||||
local footer = self.footer:gsub("{{COPYRIGHT}}", self.copyright or symbol.legal.copyright .. "The Copyright Holder")
|
||||
return header .. table.concat(self.parts, "\n") .. footer
|
||||
local footer = self.default_footer:gsub("{{COPYRIGHT}}", self.copyright or symbol.legal.copyright .. "The Copyright Holder")
|
||||
return header .. table.concat(self.parts, "\n") .. default_footer
|
||||
end
|
||||
return table.concat(self.parts, "\n")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user