When you go to a page that does not exist, your browser will display a default error page unless the website intervenes and provides it’s own error page. Elegant provides an error page that allows the user to search for the page that they were trying to reach.

Here is an example of what the 404 page may look like:

Error 404 page

Configuration

To enable the custom 404 page, you need to add 404 to DIRECT_TEMPLATES in your pelican configuration.

DIRECT_TEMPLATES = ['404']

Note that these values must be added to any existing values present for the DIRECT_TEMPLATES configuration variables.

Like this post? Share on: TwitterFacebookEmail


Talha Mansoor Avatar Talha Mansoor is the creator and lead developer of Elegant theme.
Jack De Winter ever evolving, ever learning

Keep Reading


Published

Last Updated

Category

Extra Customization

Tags

Stay in Touch

Get Monthly Updates