diff --git a/api.go b/api.go index 8490c4aa..a8f67e74 100644 --- a/api.go +++ b/api.go @@ -412,13 +412,17 @@ func NewAPI(config Config, a Adapter) API { openAPIPath = path.Join(prefix, openAPIPath) } ctx.SetHeader("Content-Type", "text/html") + title := "Elements in HTML" + if config.Info != nil && config.Info.Title != "" { + title = config.Info.Title + " Reference" + } ctx.BodyWriter().Write([]byte(` - Elements in HTML + ` + title + `