diff --git a/ServerOptions.go b/ServerOptions.go index 58fa724..ea5261a 100644 --- a/ServerOptions.go +++ b/ServerOptions.go @@ -21,6 +21,7 @@ type ServerOptions struct { ExternalBaseURL string DeclareRSSLanguage string DeclareRSSEmail string + ContentedServer string } func DefaultOptions() *ServerOptions { @@ -41,5 +42,6 @@ func DefaultOptions() *ServerOptions { ExternalBaseURL: "http://127.0.0.1/", DeclareRSSLanguage: "en-GB", DeclareRSSEmail: `nobody@example.com`, + ContentedServer: "", } } diff --git a/rModify.go b/rModify.go index ba791c1..a8ef506 100644 --- a/rModify.go +++ b/rModify.go @@ -49,6 +49,25 @@ func (this *WikiServer) routeModify(w http.ResponseWriter, r *http.Request, arti | formatting help +` + if len(this.opts.ContentedServer) > 0 { + content += ` + + + | upload... + + ` + } + + content += `