save
This commit is contained in:
13
lib/fes.lua
13
lib/fes.lua
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user