diff --git a/controllers/index.go b/controllers/index.go index ed520d2d8..06b68d27d 100644 --- a/controllers/index.go +++ b/controllers/index.go @@ -26,7 +26,6 @@ type MetadataPage struct { Image string Thumbnail string TagsString string - Title string Summary string Name string Tags []string @@ -77,7 +76,7 @@ func handleScraperMetadataPage(w http.ResponseWriter, r *http.Request) { if err != nil { log.Panicln(err) } - imageURL, err := url.Parse(fmt.Sprintf("http://%s%s", r.Host, data.GetLogoPath())) + imageURL, err := url.Parse(fmt.Sprintf("http://%s%s", r.Host, "/logo")) if err != nil { log.Panicln(err) } @@ -100,6 +99,7 @@ func handleScraperMetadataPage(w http.ResponseWriter, r *http.Request) { tagsString := strings.Join(data.GetServerMetadataTags(), ",") metadata := MetadataPage{ + Name: data.GetServerName(), RequestedURL: fullURL.String(), Image: imageURL.String(), Thumbnail: thumbnailURL, diff --git a/static/metadata.html b/static/metadata.html index 07829e1c8..a65df60b8 100644 --- a/static/metadata.html +++ b/static/metadata.html @@ -4,11 +4,11 @@ - {{.Config.Title}} + {{.Name}} - - + + @@ -24,7 +24,7 @@ - + @@ -51,8 +51,7 @@ -

{{.Title}}

-

{{.Name}}

+

{{.Name}}