🐛 fix: mention translations in 404 if there's more than 1 language

main
welpo 2 years ago
parent 5ac69fe21d
commit 58d0dd6f2f
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -6,7 +6,7 @@
<div class="subheader">not found</div>
{# Default English message #}
<p>The page you requested doesn't seem to exist{%- if config.languages | length > 1 %} or has not been translated to your language yet{%- endif -%}. Check the URL for errors, or <a href="{{ config.base_url }}">return to the homepage</a>.</p>
<p>The page you requested doesn't seem to exist{%- if config.languages | length > 0 %} or has not been translated to your language yet{%- endif -%}. Check the URL for errors, or <a href="{{ config.base_url }}">return to the homepage</a>.</p>
{# Iterate through each language and display the localised 404 message along with a "Go Home" link #}
{%- for language_name, language in config.languages -%}

Loading…
Cancel
Save