Send title of Page to view (#1944)

* Add ability to use page title from template
This commit is contained in:
Kevin Bayer
2021-07-11 22:41:25 -05:00
committed by GitHub
parent 671c62cdef
commit 38b977368c

View File

@@ -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")