diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-14 11:56:21 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-14 11:56:21 +0800 |
commit | c916e1854f36c22209987dcf7cb32c9feb811b22 (patch) | |
tree | 163bc34b14f7839b58a24f445756b1dadcfdc9d4 /config.go | |
parent | README.md: Fix typo (diff) | |
download | forge-c916e1854f36c22209987dcf7cb32c9feb811b22.tar.gz forge-c916e1854f36c22209987dcf7cb32c9feb811b22.tar.zst forge-c916e1854f36c22209987dcf7cb32c9feb811b22.zip |
*: Make the forge title configurable
Diffstat (limited to '')
-rw-r--r-- | config.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -26,6 +26,9 @@ var config struct { Key string `scfg:"key"` Root string `scfg:"root"` } `scfg:"ssh"` + General struct { + Title string `scfg:"title"` + } `scfg:"general"` Git struct { Root string `scfg:"root"` } `scfg:"git"` @@ -56,5 +59,7 @@ func load_config(path string) (err error) { return err } + global_data["forge_title"] = config.General.Title + return nil } |