mod_http_errors: Allow adding icons on error pages
authorKim Alvefur <zash@zash.se>
Fri, 09 Jul 2021 21:54:47 +0200
changeset 11666 a8798e04b5c8
parent 11665 735b8f4a6d7e
child 11667 04fa947784bc
mod_http_errors: Allow adding icons on error pages
plugins/mod_http_errors.lua
--- a/plugins/mod_http_errors.lua	Thu Jul 08 18:21:59 2021 +0200
+++ b/plugins/mod_http_errors.lua	Fri Jul 09 21:54:47 2021 +0200
@@ -47,7 +47,7 @@
 </style>
 </head>
 <body>
-<h1>{title}</h1>
+<h1>{icon?{icon_raw!?}} {title}</h1>
 <p>{message}</p>
 {warning&<p class="warning"><span>&#9888; {warning?} &#9888;</span></p>}
 {extra&<p class="extra">{extra?}</p>}