From 21d14994de3e3120c4f6f749a977429a171943f4 Mon Sep 17 00:00:00 2001 From: Anthony Donlon Date: Sun, 21 Dec 2025 20:42:58 +0800 Subject: [PATCH] python: rename head block in base template to 'html_head' --- cloudflare_error_page/templates/error.html | 2 +- editor/server/utils.py | 2 +- resources/templates/error.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudflare_error_page/templates/error.html b/cloudflare_error_page/templates/error.html index 823349f..e2520d3 100644 --- a/cloudflare_error_page/templates/error.html +++ b/cloudflare_error_page/templates/error.html @@ -14,7 +14,7 @@ -{% block header %}{% endblock %} +{% block html_head %}{% endblock %} diff --git a/editor/server/utils.py b/editor/server/utils.py index 1de753d..5a091c2 100644 --- a/editor/server/utils.py +++ b/editor/server/utils.py @@ -20,7 +20,7 @@ env = Environment( ) template = env.from_string('''{% extends base %} -{% block header %} +{% block html_head %} {% if page_icon_url %} {% if page_icon_type %} diff --git a/resources/templates/error.html b/resources/templates/error.html index 2f4d37e..bb3a616 100644 --- a/resources/templates/error.html +++ b/resources/templates/error.html @@ -13,7 +13,7 @@ -{% block header %}{% endblock %} +{% block html_head %}{% endblock %}