aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-14 11:56:21 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-14 11:56:21 +0800
commitc916e1854f36c22209987dcf7cb32c9feb811b22 (patch)
tree163bc34b14f7839b58a24f445756b1dadcfdc9d4 /config.go
parentREADME.md: Fix typo (diff)
downloadforge-c916e1854f36c22209987dcf7cb32c9feb811b22.tar.gz
forge-c916e1854f36c22209987dcf7cb32c9feb811b22.tar.zst
forge-c916e1854f36c22209987dcf7cb32c9feb811b22.zip
*: Make the forge title configurable
Diffstat (limited to 'config.go')
-rw-r--r--config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.go b/config.go
index 525581a..d427aee 100644
--- a/config.go
+++ b/config.go
@@ -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
}