save
This commit is contained in:
34
fsd.vxserver.dev/include/global.lua
Normal file
34
fsd.vxserver.dev/include/global.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
local global = {}
|
||||
|
||||
global.start = function(fes, site, title)
|
||||
if title and title ~= "" then
|
||||
title = title .. " - "
|
||||
else
|
||||
title = ""
|
||||
end
|
||||
site.title = title .. "Free Software Distributions "
|
||||
site.copyright = fes.util.copyright("https://fsdproject.org", "fSD")
|
||||
site.favicon = "/static/favicon.ico"
|
||||
site:banner(fes.util.cc {
|
||||
fes.std.center(fes.std.ha("/", fes.std.h1("Free Software Distributions"))),
|
||||
fes.std.center(fes.util.cc {
|
||||
fes.std.nav("/about", "About"),
|
||||
fes.std.nav("/community", "Community"),
|
||||
fes.std.nav("/releases", "Releases"),
|
||||
fes.std.nav("/hacking", "Hacking"),
|
||||
})
|
||||
})
|
||||
end
|
||||
|
||||
global.finish = function(fes, site)
|
||||
site:note(fes.util.cc {
|
||||
fes.std.h2("Other resources"),
|
||||
fes.std.tl({
|
||||
fes.std.external("https://git.vxserver.dev", "Git Trees"),
|
||||
fes.std.external("https://docs.fsdproject.org", "Documentation"),
|
||||
}),
|
||||
|
||||
})
|
||||
end
|
||||
|
||||
return global
|
||||
@@ -1,15 +0,0 @@
|
||||
local header = {}
|
||||
|
||||
header.render = function(std)
|
||||
return table.concat({
|
||||
std.center(std.ha("/", std.h1("Free Software Distributions"))),
|
||||
std.center(table.concat({
|
||||
std.nav("/about", "About"),
|
||||
std.nav("/faq", "FAQ"),
|
||||
std.nav("/release", "Releases"),
|
||||
std.nav("/article", "Articles"),
|
||||
}))
|
||||
})
|
||||
end
|
||||
|
||||
return header
|
||||
Reference in New Issue
Block a user