]> git.ipfire.org Git - ipfire.org.git/commitdiff
error-pages: Include the error code
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Jan 2024 16:56:57 +0000 (16:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Jan 2024 16:56:57 +0000 (16:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/error-pages/500.markdown
src/error-pages/_layouts/error.html

index 3f4da47fe445ef39f0b3c6bbbbbce006eaa0ebc4..120b72d5088491e7ccb1d87183e9f9fba2251afb 100644 (file)
@@ -1,5 +1,6 @@
 ---
 layout: error
 
+error-code: 500
 error-description: Internal Server Error
 ---
index 6b62622b52cf3f4d5287b65460ac8e72b92a63f4..19c7504a11bef34f27d8a59c2a7bffb75bc5517d 100644 (file)
@@ -35,7 +35,7 @@
                                        <p class="title">Oops, Something Went Wrong</p>
 
                                        {% if page.error-description %}
-                                               <p class="subtitle">{{ page.error-description }}</p>
+                                               <p class="subtitle">{{ page.error-code }} &dash; {{ page.error-description }}</p>
                                        {% endif %}
                                </div>
                        </div>