--- date: 2021-01-01 00:00:00 description: > Customized HTML error page categories: [ Error page ] tags: [ HTML, 404 ] exclude_from_search: true regenerate: false permalink: /404.html http_error: 404 back_url: / sitemap: false --- {% capture j1_cache %} {% comment %} # ----------------------------------------------------------------------------- # ~/assets/http_error_pages/HTTP404.html # Liquid TEMPLATE to generate customized HTML error pages: 404 - Page not found # # Product/Info: # https://jekyll.one # # Copyright (C) 2021 Juergen Adams # Copyright (C) 2020 Andi Dittrich # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE # HttpErrorPages are licensed under the MIT License. # See: https://github.com/AndiDittrich/HttpErrorPages # ----------------------------------------------------------------------------- # NOTE # German translation, see: https://de.wikipedia.org/wiki/HTTP-Statuscode # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # config: {{ config | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% assign language = site.language %} {% assign webmaster_email = site.webmaster.email %} {% assign copyright_info = site.copyright %} {% assign favicon = site.favicon.image %} {% assign images_dir = site.asciidoc_attributes.imagesdir %} {% assign brand_text = site.brand.text %} {% assign brand_image_source = site.brand.image %} {% assign brand_image_height = site.brand.image_height %} {% capture brand_image %}{{images_dir}}/{{brand_image_source}}{% endcapture %} {% comment %} language detection -------------------------------------------------------------------------------- {% endcomment %} {% if site.language == "en" %} {% assign language = "en" %} {% elsif site.language == "de"%} {% assign language = "de" %} {% else %} {% assign language = "en" %} {% endif %} {% if language == 'en' %} {% assign title = "Page not found" %} {% assign back_url_text = "Back Home" %} {% assign reason = "The page you requested could not found.
Sorry about that, this shoud not happen." %} {% assign contact_issue = "Technical Contact" %} {% endif %} {% if language == 'de' %} {% assign title = "Seite nicht gefunden" %} {% assign back_url_text = "Zurück zur Startseite" %} {% assign reason = "Die angeforderte Seite konnte nicht gefunden werden.
Wir bitten um Entschuldigung, dass sollte nicht passieren." %} {% assign contact_issue = "Technischer Kontakt" %} {% endif %} {{title}} · {{page.http_error}} {{brand_text}}

{{title}} {{page.http_error}}

{{reason}}

{{back_url_text}}
{% endcapture %} {{ j1_cache | strip_empty_lines }} {% assign j1_cache = nil %}