File tree Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ layout : splash
3+ ---
4+
5+ <div class =" notice--danger " >
6+ <h1 id =" " >404</h1 >
7+ <p ><strong >Page Not Found</strong ></p >
8+ </div >
Original file line number Diff line number Diff line change @@ -6,3 +6,15 @@ layout: splash
66 <h1 id =" " >404</h1 >
77 <p ><strong >页面不存在</strong ></p >
88</div >
9+
10+ <!-- --{{'>'}}
11+ <script>
12+ var pathname = location.pathname || "/";
13+ {%- for item in page.translations -%}
14+ {%- unless item[0] == site.locale %}
15+ if (pathname.indexOf("{{ '/' | relative_url }}{{ item[0] }}/") == 0) {
16+ location.href = "{{ '/' | relative_url }}{{ item[1].url | remove_first: "/" }}";
17+ }
18+ {%- endunless -%}
19+ {%- endfor -%}
20+ </script>
Original file line number Diff line number Diff line change 1+ ---
2+ layout : splash
3+ ---
4+
5+ <div class =" notice--danger " id =" not-found-content " >
6+ <h1 id =" " >404</h1 >
7+ <p ><strong >頁麵不存在</strong ></p >
8+ </div >
Original file line number Diff line number Diff line change @@ -123,10 +123,6 @@ defaults:
123123 path : assets
124124 values :
125125 i18n : false
126- - scope :
127- path : 404.md
128- values :
129- i18n : false
130126 - scope :
131127 path : robots.txt
132128 values :
You can’t perform that action at this time.
0 commit comments