diff --git a/README.md b/README.md index d97e4c4..98d165c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Here's an editor for the error page. You can try this out [here](https://virt.mo ## Quickstart for Programmers -Install `cloudflare-error-page` using pip +Install `cloudflare-error-page` with pip. ``` Bash pip install git+https://github.com/donlon/cloudflare-error-page.git @@ -54,10 +54,10 @@ with open('error.html', 'w') as f: webbrowser.open('error.html') ``` -You can also see this example [here](https://virt.moe/cloudflare-error-page/examples/default). -  +You can also see this example [here](https://virt.moe/cloudflare-error-page/examples/default). + ## More Examples ### Catastrophic infrastructure failure @@ -93,11 +93,10 @@ params = { } ``` -See this example [here](https://virt.moe/cloudflare-error-page/examples/catastrophic). - -  +[link](https://virt.moe/cloudflare-error-page/examples/catastrophic). + ### Web server is working ``` JavaScript @@ -126,13 +125,14 @@ params = { } ``` -See this example [here](https://virt.moe/cloudflare-error-page/examples/working). -  +[link](https://virt.moe/cloudflare-error-page/examples/working). + + ### Using Flask server -See [flask_server.py](examples/flask_server.py) +See [flask_server.py](examples/flask_server.py) for embedding the error pages into the server ## Full Parameter Reference @@ -140,7 +140,7 @@ See [flask_server.py](examples/flask_server.py) { "html_title": "cloudflare.com | 500: Internal server error", "title": "Internal server error", - "error_code": 999, + "error_code": 500, "time": "2025-11-18 12:34:56 UTC", // if not set, current UTC time is shown // Configuration for "Visit ... for more information" line diff --git a/cloudflare_error_page/templates/error.html b/cloudflare_error_page/templates/error.html index 38447d0..029201f 100644 --- a/cloudflare_error_page/templates/error.html +++ b/cloudflare_error_page/templates/error.html @@ -101,7 +101,7 @@ {% if show_creator %} - + {% endif %}
diff --git a/editor/resources/index.html b/editor/resources/index.html index 8e7faf1..905c26a 100644 --- a/editor/resources/index.html +++ b/editor/resources/index.html @@ -507,7 +507,7 @@