feat: add version to index.html description meta tag

This commit is contained in:
Deluan 2020-03-22 01:04:10 -04:00
parent 20075ae68d
commit f403a8da34
2 changed files with 3 additions and 1 deletions

View File

@ -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 {

View File

@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta
name="description"
content="Navidrome Music Server"
content="Navidrome Music Server - {{.Version}}"
/>
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="apple-touch-icon" sizes="57x57" href="%PUBLIC_URL%/apple-icon-57x57.png">