alpha p9
This commit is contained in:
16
bak.examples/multi-page/www/index.lua
Normal file
16
bak.examples/multi-page/www/index.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
local fes = require("fes")
|
||||
local site = fes.fes()
|
||||
|
||||
site.title = "Home"
|
||||
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
|
||||
|
||||
site:h1("Home")
|
||||
site:note(
|
||||
fes.std.ul({
|
||||
fes.std.a("page1"),
|
||||
fes.std.a("page2"),
|
||||
fes.std.a("sub/subpage"),
|
||||
})
|
||||
)
|
||||
|
||||
return site
|
||||
15
bak.examples/multi-page/www/page1.lua
Normal file
15
bak.examples/multi-page/www/page1.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
local fes = require("fes")
|
||||
local site = fes.fes()
|
||||
|
||||
site.title = "Page 1"
|
||||
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
|
||||
|
||||
site:h1("Page 1")
|
||||
site:note(
|
||||
fes.std.ul({
|
||||
fes.std.a("/", "home"),
|
||||
fes.std.a("page2"),
|
||||
})
|
||||
)
|
||||
|
||||
return site
|
||||
15
bak.examples/multi-page/www/page2.lua
Normal file
15
bak.examples/multi-page/www/page2.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
local fes = require("fes")
|
||||
local site = fes.fes()
|
||||
|
||||
site.title = "Page 2"
|
||||
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
|
||||
|
||||
site:h1("Page 2")
|
||||
site:note(
|
||||
fes.std.ul({
|
||||
fes.std.a("/", "home"),
|
||||
fes.std.a("page1"),
|
||||
})
|
||||
)
|
||||
|
||||
return site
|
||||
14
bak.examples/multi-page/www/sub/subpage.lua
Normal file
14
bak.examples/multi-page/www/sub/subpage.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
local fes = require("fes")
|
||||
local site = fes.fes()
|
||||
|
||||
site.title = "Subpage"
|
||||
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
|
||||
|
||||
site:h1("Subpage")
|
||||
site:note(
|
||||
fes.std.ul({
|
||||
fes.std.a("/", "Home"),
|
||||
})
|
||||
)
|
||||
|
||||
return site
|
||||
Reference in New Issue
Block a user