add commit to bottom nav

This commit is contained in:
2025-06-30 22:34:19 +03:00
parent c22aa1036f
commit a12fd0a904
2 changed files with 5 additions and 1 deletions

View File

@@ -85,10 +85,14 @@ def create_app():
@app.context_processor
def inject_constants():
commit = ""
with open('.git/refs/heads/main') as f:
commit = f.read().strip()
return {
"InfoboxIcons": InfoboxIcons,
"InfoboxHTMLClass": InfoboxHTMLClass,
"InfoboxKind": InfoboxKind,
"__commit": commit,
}
@app.context_processor