From c916e1854f36c22209987dcf7cb32c9feb811b22 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 14 Feb 2025 11:56:21 +0800 Subject: *: Make the forge title configurable --- config.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config.go') 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 } -- cgit v1.2.3