broke out a lot of base bits of the frame as configurable options

This commit is contained in:
2026-03-04 22:36:00 -07:00
parent 137536923d
commit 95aee6cf75
4 changed files with 44 additions and 26 deletions
+9 -2
View File
@@ -59,14 +59,21 @@ func (*AmCLI) Version() string {
// AmConfig holds the configuration of the application as read from YAML.
type AmConfig struct {
Site struct {
BaseURL string `yaml:"baseURL"`
Title string `yaml:"title"`
BaseURL string `yaml:"baseURL"`
Title string `yaml:"title"`
SiteIcon struct {
Path string `yaml:"path"`
Type string `yaml:"type"`
} `yaml:"siteIcon"`
SiteShortcutIcon string `yaml:"siteShortcutIcon"`
SiteLogo string `yaml:"siteLogo"`
TopRefresh int `yaml:"topRefresh"`
LoginCookieName string `yaml:"loginCookieName"`
LoginCookieAge int `yaml:"loginCookieAge"`
SessionExpire string `yaml:"sessionExpire"`
UserAgreementResource string `yaml:"userAgreementResource"`
PolicyResource string `yaml:"policyResource"`
FooterTemplate string `yaml:"footerTemplate"`
} `yaml:"site"`
Database struct {
Driver string `yaml:"driver"`