Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
website
提交
80139541
W
website
项目概览
openeuler
/
website
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
website
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
80139541
编写于
8月 31, 2019
作者:
E
edisonxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add 404 for en&zh
上级
c0360ae5
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
29 addition
and
16 deletion
+29
-16
i18n/en.toml
i18n/en.toml
+6
-0
i18n/zh.toml
i18n/zh.toml
+6
-0
themes/project/layouts/404.html
themes/project/layouts/404.html
+13
-16
themes/project/static/css/custom.css
themes/project/static/css/custom.css
+4
-0
未找到文件。
i18n/en.toml
浏览文件 @
80139541
...
...
@@ -30,3 +30,9 @@ other = "NEWS"
[main_nav_news_name]
other
=
"News"
# 404 page
[404_title]
other
=
"Page Not Found"
[404_homepage]
other
=
"Go to Homepage"
\ No newline at end of file
i18n/zh.toml
浏览文件 @
80139541
...
...
@@ -29,3 +29,9 @@ other = "新闻"
[main_nav_news_name]
other
=
"新闻"
# 404 page
[404_title]
other
=
"没有找到页面"
[404_homepage]
other
=
"返回主页"
themes/project/layouts/404.html
浏览文件 @
80139541
<!DOCTYPE html>
<html
lang=
"{{ .Site.LanguageCode }}"
>
{{ partial "head.html" . }}
{{ partial "head.html" . }}
<body>
<body>
<div
id=
"all"
>
...
...
@@ -17,20 +17,14 @@
<div
class=
"container"
>
<div
class=
"col-sm-6 col-sm-offset-3"
id=
"error-page"
>
<div
class=
"box"
>
<p
class=
"text-center"
>
<a
href=
"{{ .Site.BaseURL }}"
>
<img
src=
"{{ .Site.Params.logo }}"
alt=
"{{ .Title }} logo"
>
<h1>
404
</h1>
<h2
class=
"text-muted"
>
{{ i18n "404_title" }}
</h2>
<p
class=
"buttons"
>
<a
href=
"{{ .Site.BaseURL | relLangURL }}"
class=
"btn btn-template-main"
>
<i
class=
"fa fa-home"
></i>
{{ i18n "404_homepage" }}
</a>
</p>
<h3>
We are sorry - this page is not here anymore
</h3>
<h4
class=
"text-muted"
>
Error 404 - Page not found
</h4>
<p
class=
"buttons"
><a
href=
"{{ .Site.BaseURL }}"
class=
"btn btn-template-main"
><i
class=
"fa fa-home"
></i>
Go to Homepage
</a>
</p>
</div>
...
...
@@ -44,5 +38,8 @@
{{ partial "footer.html" . }}
</div>
</body>
{{ partial "scripts.html" . }}
</body>
</html>
\ No newline at end of file
themes/project/static/css/custom.css
浏览文件 @
80139541
...
...
@@ -347,6 +347,10 @@ footer .notice span {
margin-bottom
:
16px
;
}
#error-page
.box
{
margin-top
:
60px
;
}
html
{
min-width
:
1280px
;
max-width
:
1920px
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录