diff --git a/web/public/index.html b/web/public/index.html index e706e646d..58ece293e 100644 --- a/web/public/index.html +++ b/web/public/index.html @@ -15,6 +15,7 @@ +
diff --git a/web/src/pages/about.tsx b/web/src/pages/about.tsx index 82361cc5d..00206c20d 100644 --- a/web/src/pages/about.tsx +++ b/web/src/pages/about.tsx @@ -1,11 +1,23 @@ import raw from "raw.macro"; import Markdown from "../shell/markdown"; +const VERSION = + document.querySelector("meta[name=version]")?.getAttribute("content") ?? + "unknown"; + +const useVersion = () => { + return VERSION; +}; + export const About = () => { + const version = useVersion(); return (
+ Version {version}
+