diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-27 16:32:58 +0000 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-27 16:32:58 +0000 |
| commit | db0b5c34432b4c0135af8c5c885fd6ad348c3691 (patch) | |
| tree | 8f38b973a8dd3fc22bbd28498004940451621b41 /backend/config.go | |
| parent | 7bd309f3ca44930c5207b94acc2d425b24d4b369 (diff) | |
| parent | 1e2ad3a8f8cd2c12786b92210616325a33d1b209 (diff) | |
Merge pull request '[Feat] Custom sections' (#1) from feat/custom-sections into main
Reviewed-on: https://git.anhgelus.world/anhgelus/small-web/pulls/1
Diffstat (limited to 'backend/config.go')
| -rw-r--r-- | backend/config.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/backend/config.go b/backend/config.go index b59c00b..cd24592 100644 --- a/backend/config.go +++ b/backend/config.go @@ -29,8 +29,10 @@ type Config struct { Description string `toml:"description"` DefaultImage string `toml:"default_image"` Quotes []string `toml:"quotes"` + Language string `toml:"language"` + + Sections []Section `toml:"section"` - LogFolder string `toml:"log_folder"` RootFolder string `toml:"root_folder"` PublicFolder string `toml:"public_folder"` @@ -56,7 +58,12 @@ func (c *Config) DefaultValues() { Header: "logo.jpg", Favicon: "favicon.jpg", } - c.LogFolder = "data/logs" + c.Sections = []Section{{ + Name: "logs", + Description: "Aut maxime voluptatibus ut dicta voluptates et ut alias. Sunt et incidunt similique et doloremque nostrum fugit autem. Ut omnis quo nisi. Accusantium voluptas fugit autem maiores numquam doloribus.", + Folder: "data/logs", + URI: "logs", + }} c.RootFolder = "data" c.PublicFolder = "public" c.Quotes = []string{"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do."} |
