From 38b977368cb18b1cc3f711c4cf71b05d8091c339 Mon Sep 17 00:00:00 2001 From: Kevin Bayer Date: Sun, 11 Jul 2021 22:41:25 -0500 Subject: [PATCH] Send title of Page to view (#1944) * Add ability to use page title from template --- CTFd/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTFd/views.py b/CTFd/views.py index 8882396e..d83cf410 100644 --- a/CTFd/views.py +++ b/CTFd/views.py @@ -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")