🐛 fix: mention translations in 404 if there's more than 1 language
This commit is contained in:
parent
5ac69fe21d
commit
58d0dd6f2f
@ -6,7 +6,7 @@
|
|||||||
<div class="subheader">not found</div>
|
<div class="subheader">not found</div>
|
||||||
|
|
||||||
{# Default English message #}
|
{# 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 #}
|
{# Iterate through each language and display the localised 404 message along with a "Go Home" link #}
|
||||||
{%- for language_name, language in config.languages -%}
|
{%- for language_name, language in config.languages -%}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user