feat(pages): add page theme configuration and static files

This commit is contained in:
WJQSERVER 2025-02-18 10:19:11 +08:00
parent 785a74dfeb
commit 8336896979
13 changed files with 477 additions and 25 deletions

View file

@ -39,8 +39,15 @@ type HttpcConfig struct {
MaxConnsPerHost int `toml:"maxConnsPerHost"`
}
/*
[pages]
enabled = false
theme = "bootstrap" # "bootstrap" or "nebula"
staticDir = "/data/www"
*/
type PagesConfig struct {
Enabled bool `toml:"enabled"`
Theme string `toml:"theme"`
StaticDir string `toml:"staticDir"`
}