{% extends 'partials/_master.twig' %} {% use 'partials/_sub_fields.twig' %} {% setcontent record = 'blocks/404-not-found' %} {% block title %} {{ record.title|default('404 not found') }} {% endblock title %} {% block main %}
{# special case: See if we actually want the Styleguide. #} {% if global.request.server.get('REQUEST_URI') == '/styleguide' %} {{ include('styleguide.twig') }} {% else %}

{{ record.title|default('404 not found') }}

{% if record %} {{ block('sub_fields') }} {% else %}

The requested page was not found.

Add a Blocks record with slug '404-not-found' to customize this message.

If it's not showing up here, doublecheck that the slug is correct, and that the Block is published.

{% endif %} {% endif %}
{% endblock main %}