9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-19 23:09:29 +00:00

editor: support page icon

This commit is contained in:
Anthony Donlon
2025-12-17 01:21:43 +08:00
parent 245f5b1f6d
commit eb0d5a7d55
7 changed files with 71 additions and 49 deletions

View File

@@ -12,8 +12,9 @@ from flask import (
)
from cloudflare_error_page import ErrorPageParams
from cloudflare_error_page import render as render_cf_error_page
from .utils import fill_cf_template_params
from .utils import (
render_extended_template,
)
root_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../')
examples_dir = os.path.join(root_dir, 'examples')
@@ -50,7 +51,5 @@ def index(name: str):
if params is None:
abort(404)
fill_cf_template_params(params)
# Render the error page
return render_cf_error_page(params)
return render_extended_template(params=params)