trying to variablise the title of the blank page
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
pierre geeraert
2026-03-16 23:08:44 +00:00
parent 852fccd95c
commit 16c8fba623
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ def redirect_to_key(request,key):
value = r.get(key)
if value == None:
print(key+" is not setup, displaying default page")
return render(request, 'blank_page.html',{})
return render(request, 'blank_page.html', {'title': key})
else:
value_extracted = str(value.decode('utf-8'))
print(key+" is setup to : "+value_extracted)
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="https://cdn-icons-png.flaticon.com/512/6402/6402576.png">
<title>Streaming</title>
<title>{{ title }}</title>
</head>