This commit is contained in:
2026-02-14 15:50:05 -05:00
parent 8bfe979093
commit 94818e25fe
31 changed files with 25 additions and 191 deletions

View File

@@ -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