mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-04 13:54:26 +01:00
Send title of Page to view (#1944)
* Add ability to use page title from template
This commit is contained in:
@@ -348,7 +348,7 @@ def static_html(route):
|
||||
if page.auth_required and authed() is False:
|
||||
return redirect(url_for("auth.login", next=request.full_path))
|
||||
|
||||
return render_template("page.html", content=page.html)
|
||||
return render_template("page.html", content=page.html, title=page.title)
|
||||
|
||||
|
||||
@views.route("/tos")
|
||||
|
||||
Reference in New Issue
Block a user