{% extends "base.html" %} {%- set uglyurls = config.extra.uglyurls | default(value=false) -%} {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %} {%- block seo -%} {{ super() }} {%- set title = "404 Page not found" -%} {%- if config.title -%} {%- set title_addition = title_separator ~ config.title -%} {%- else -%} {%- set title_addition = "" -%} {%- endif -%} {%- set description = config.description -%} {{}} {%- endblock seo -%} {%- block content %}

404 :(

{#- Default English message #}

Page not found, maybe moved{% if config.languages | length > 1 %} or not in this language{% endif %}. {% if config.build_search_index %}Try searching or {% endif %}go to homepage.

{# Iterate through each language and display the localised 404 message #} {%- for lcode, language in config.languages -%} {%- if lcode != config.default_language -%} {%- set i18n_404 = load_data(path="i18n/" ~ lcode ~ '.toml', required=false) -%} {%- if not i18n_404 -%}{%- set i18n_404 = load_data(path="themes/abridge/i18n/" ~ lcode ~ ".toml", required=false) -%}{%- endif %}

{{}}{{}} {% if config.build_search_index %}{{}}{% endif %} {{}}{{}}

{%- endif -%} {%- endfor -%} {% if config.default_language != "en" %}

{{}}{{}} {% if config.build_search_index %}{{}}{% endif %} {{}}{{}}

{% endif %}
{%- endblock content %}