assets/error_pages/HTTP500.html in j1-template-2021.1.17 vs assets/error_pages/HTTP500.html in j1-template-2021.1.18
- old
+ new
@@ -1,6 +1,15 @@
---
+date: 2021-01-01 00:00:00
+description: >
+ Customized HTML error page
+
+categories: [ Error page ]
+tags: [ HTML, 500 ]
+
+exclude_from_search: true
+
regenerate: false
permalink: /500.html
http_error: 500
back_url: /
sitemap: false
@@ -41,11 +50,17 @@
{% assign brand_image_source = site.brand.image %}
{% assign brand_image_height = site.brand.image_height %}
{% capture brand_image %}{{images_dir}}/{{brand_image_source}}{% endcapture %}
-{% if language != 'en' or language != 'de' %}
- {% assign language = 'en' %}
+{% 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 = "Internal Server Error" %}
{% assign back_url_text = "Back Home" %}