From f403a8da3461814ab028f559aca3855ae089166b Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 22 Mar 2020 01:04:10 -0400 Subject: [PATCH] feat: add version to index.html description meta tag --- server/app/serve_index.go | 2 ++ ui/public/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/app/serve_index.go b/server/app/serve_index.go index cd3a5a992..79cbcb90b 100644 --- a/server/app/serve_index.go +++ b/server/app/serve_index.go @@ -7,6 +7,7 @@ import ( "net/http" "github.com/deluan/navidrome/assets" + "github.com/deluan/navidrome/consts" "github.com/deluan/navidrome/log" "github.com/deluan/navidrome/model" ) @@ -34,6 +35,7 @@ func ServeIndex(ds model.DataStore) http.HandlerFunc { j, _ := json.Marshal(appConfig) data := map[string]interface{}{ "AppConfig": string(j), + "Version": consts.Version(), } err = t.Execute(w, data) if err != nil { diff --git a/ui/public/index.html b/ui/public/index.html index 0ff570fc0..8554cfb1c 100644 --- a/ui/public/index.html +++ b/ui/public/index.html @@ -4,7 +4,7 @@