diff --git a/version/version.go b/version/version.go index 4a243fe..43c0c63 100644 --- a/version/version.go +++ b/version/version.go @@ -8,7 +8,7 @@ import ( "golang.org/x/mod/semver" ) -const Tag = "v0.0.7" +const Tag = "v0.0.8" var versionInfo struct { Local struct { diff --git a/web/static/image/GitHub-Mark-32px.png b/web/static/image/GitHub-Mark-32px.png new file mode 100644 index 0000000..8b25551 Binary files /dev/null and b/web/static/image/GitHub-Mark-32px.png differ diff --git a/web/templates/_layout.html b/web/templates/_layout.html index 9975478..fe9de0f 100644 --- a/web/templates/_layout.html +++ b/web/templates/_layout.html @@ -31,7 +31,12 @@
diff --git a/web/web.go b/web/web.go index 0665822..7d68394 100644 --- a/web/web.go +++ b/web/web.go @@ -14,6 +14,7 @@ import ( "github.com/tardisx/linkwallet/db" "github.com/tardisx/linkwallet/entity" + "github.com/tardisx/linkwallet/version" "github.com/hako/durafmt" @@ -50,7 +51,7 @@ func Create(bmm *db.BookmarkManager) *Server { } // templ := template.Must(template.New("").Funcs(template.FuncMap{"dict": dictHelper}).ParseFS(templateFiles, "templates/*.html")) - templ := template.Must(template.New("").Funcs(template.FuncMap{"nicetime": niceTime, "niceURL": niceURL, "join": strings.Join}).ParseFS(templateFiles, "templates/*.html")) + templ := template.Must(template.New("").Funcs(template.FuncMap{"nicetime": niceTime, "niceURL": niceURL, "join": strings.Join, "version": version.Is}).ParseFS(templateFiles, "templates/*.html")) r := gin.Default()