File tree 2 files changed +57
-76
lines changed
2 files changed +57
-76
lines changed Original file line number Diff line number Diff line change 4
4
permalink: "404"
5
5
---
6
6
7
- {% for language in site.languages %}
8
- < div id ="{{ language }} " {% if language ! = site.default_lang %} class ="hide " {% endif %} >
9
- {{ site.data[language].locale.not-found.msg | markdownify }}
10
- < h3 > < a href ="{% if language == site.default_lang %}{{site.url}}{% else %}{{site.url}}/{{language}}{% endif %} "> {{ site.data[language].locale.not-found.btn }}</ a > </ h3 >
11
- </ div >
12
- {% endfor %}
13
-
14
-
15
- < script >
16
- ( ( ) => {
17
- const langs = {
18
- { % for language in site . languages % }
19
- '{{language}}' :'{{ site.data[language].locale.not-found.title }}' ,
20
- { % endfor % }
21
- }
22
- const language = getLanguage ( ) ;
23
- if ( language !== 'en' ) {
24
- document . getElementById ( language ) . setAttribute ( 'class' , '' ) ;
25
- document . getElementById ( 'en' ) . setAttribute ( 'class' , 'hide' ) ;
26
- document . getElementsByClassName ( 'page-title-headder' ) [ 0 ] . innerHTML = langs [ language ]
27
- }
28
- } ) ( )
29
- </ script >
7
+ {{ site.data.locale.not-found.msg | markdownify }}
8
+ < h3 >
9
+ < a href ="/ "> {{ site.data.locale.not-found.btn }}</ a >
10
+ </ h3 >
You can’t perform that action at this time.
0 commit comments