Skip to content

Commit

Permalink
🐛 fix: mention translations in 404 if there's more than 1 language
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed May 30, 2023
1 parent 5ac69fe commit 58d0dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 58d0dd6

Please sign in to comment.