feat: add source_url config option for footer source link
Thread source_url through: config.ServerConfig → Handler.sourceURL → PageData.SourceURL → template footer. Footer only shows Source link when source_url is set.
This commit is contained in:
parent
bb0b97820b
commit
805e7ffdc2
6 changed files with 18 additions and 9 deletions
|
|
@ -40,7 +40,8 @@ type Config struct {
|
|||
type ServerConfig struct {
|
||||
Port int `toml:"port"`
|
||||
HTTPTimeout string `toml:"http_timeout"`
|
||||
BaseURL string `toml:"base_url"` // Public URL for OpenSearch XML (e.g. "https://search.example.com")
|
||||
BaseURL string `toml:"base_url"` // Public URL for OpenSearch XML (e.g. "https://search.example.com")
|
||||
SourceURL string `toml:"source_url"` // Link to the source code (e.g. "https://git.example.com/fork/kafka")
|
||||
}
|
||||
|
||||
type UpstreamConfig struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue