From ca1a1a3a4f4eb2f445fd76ded48bf8e5da984724 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 29 Dec 2015 12:27:50 +0100 Subject: [PATCH] Added notes on creating error pages --- content/docs/guides/error-pages/contents.lr | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/content/docs/guides/error-pages/contents.lr b/content/docs/guides/error-pages/contents.lr index ce16a672..69d00612 100644 --- a/content/docs/guides/error-pages/contents.lr +++ b/content/docs/guides/error-pages/contents.lr @@ -34,6 +34,21 @@ url_style = absolute For more information about this you can read the [Project File Documentation :ref](../../project/file/). +## Creating an Error Page + +You can create easy create a 404 page by creating a `404.html/contents.lr` +file. If you do not care much about the contents and structure of the file +you can just point it to an empty model (`none`) and manually select a +`404.html` template like this: + +``` +_model: none +---- +_template: 404.html +``` + +Then just create a `404.html` template with the intended contents. + ## Server Configuration If you are deploying such pages to your own servers you will need to ensure