From 5d75e9a4d6bb80c84a44e02ad5308000f09a8185 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Wed, 30 Jul 2025 10:04:08 -0500 Subject: [PATCH] Add meta titles --- app/views/errors/bad_request.html.erb | 2 ++ app/views/errors/internal_server_error.html.erb | 2 ++ app/views/errors/not_acceptable.html.erb | 2 ++ app/views/errors/not_found.html.erb | 2 ++ app/views/errors/unprocessable_entity.html.erb | 2 ++ app/views/layouts/error.html.erb | 3 ++- 6 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/views/errors/bad_request.html.erb b/app/views/errors/bad_request.html.erb index 00264d09d..e77283a79 100644 --- a/app/views/errors/bad_request.html.erb +++ b/app/views/errors/bad_request.html.erb @@ -1,3 +1,5 @@ +<% @page_title = "400 Bad Request" %> +

400

Bad request

diff --git a/app/views/errors/internal_server_error.html.erb b/app/views/errors/internal_server_error.html.erb index 6882a9888..a26256503 100644 --- a/app/views/errors/internal_server_error.html.erb +++ b/app/views/errors/internal_server_error.html.erb @@ -1,3 +1,5 @@ +<% @page_title = "500 Internal Server Error" %> +

500

Internal server error

diff --git a/app/views/errors/not_acceptable.html.erb b/app/views/errors/not_acceptable.html.erb index 6b85332ac..9408b22b0 100644 --- a/app/views/errors/not_acceptable.html.erb +++ b/app/views/errors/not_acceptable.html.erb @@ -1,3 +1,5 @@ +<% @page_title = "406 Not Acceptable" %> +

406

Not acceptable

diff --git a/app/views/errors/not_found.html.erb b/app/views/errors/not_found.html.erb index 6bc003c71..c0eafd153 100644 --- a/app/views/errors/not_found.html.erb +++ b/app/views/errors/not_found.html.erb @@ -1,3 +1,5 @@ +<% @page_title = "404 Not Found" %> +

404

Sorry, that page doesn’t exist!

diff --git a/app/views/errors/unprocessable_entity.html.erb b/app/views/errors/unprocessable_entity.html.erb index 9c904db6d..ede9ed3e6 100644 --- a/app/views/errors/unprocessable_entity.html.erb +++ b/app/views/errors/unprocessable_entity.html.erb @@ -1,3 +1,5 @@ +<% @page_title = "422 Unprocessable Entity" %> +

422

Unprocessable entity

diff --git a/app/views/layouts/error.html.erb b/app/views/layouts/error.html.erb index 869707883..673efa465 100644 --- a/app/views/layouts/error.html.erb +++ b/app/views/layouts/error.html.erb @@ -1,7 +1,7 @@ - The page you were looking for doesn’t exist (404 Not found) + <%= page_title_tag %> @@ -131,6 +131,7 @@ inline-size: 100%; border: 0; border-block-start: calc(var(--stroke-width) / 2) solid currentcolor; + color: currentcolor; margin: 1ch auto; }