This commit is contained in:
2026-02-24 15:59:26 -05:00
parent ebd14a1b36
commit 1dd76cf1d2
24 changed files with 338 additions and 227 deletions

View File

@@ -105,9 +105,8 @@ local default_gemini_footer = [[
{{COPYRIGHT}}
]]
function M.fes(proto, header, footer)
proto = proto or "http"
std.proto = proto
function M.fes(header, footer)
local proto = std.proto
local config = {}
local site_config = {}
@@ -179,6 +178,14 @@ function M:build()
)
return header .. table.concat(self.parts, "\n") .. footer
elseif self.proto == "gemini" then
local footer = self.footer:gsub(
"{{COPYRIGHT}}",
self.copyright or "(c) The Copyright Holder"
)
local header = self.header
return header .. table.concat(self.parts, "\n") .. "\n\n" .. footer
end
return table.concat(self.parts, "\n")